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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...