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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...