Getting Data In

Can REST API allow not to install splunk forwarder?

cgladky
Engager

I have a task: investigate possibility not to install universal forwarder and use only java instead.
Can REST API (java sdk) allow to do it?

Tags (2)
0 Karma
1 Solution

Damien_Dallimor
Ultra Champion

Have a look at Splunk Java Logging.

It has a appenders/handlers for log4j, logback and java.util logging, so you can seamlessly integrate it into your Java code for logging to Splunk via REST.

Download it and check out the examples !!

View solution in original post

Damien_Dallimor
Ultra Champion

Have a look at Splunk Java Logging.

It has a appenders/handlers for log4j, logback and java.util logging, so you can seamlessly integrate it into your Java code for logging to Splunk via REST.

Download it and check out the examples !!

cgladky
Engager

It works. thanks.

0 Karma

dart
Splunk Employee
Splunk Employee

You could use log4j to send data to Splunk over TCP, or you could use the REST API to write data to Splunk. See the receivers endpoint documentation

See also the Splunk Java SDK

0 Karma

cgladky
Engager

My try to use TCP fails 😞

0 Karma

Ayn
Legend

Why? UDP should be avoided for data that needs to have guaranteed delivery.

0 Karma

cgladky
Engager

Actually, I send log to splunk over UDP not TCP.

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...