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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...