Splunk Dev

Is there a way to specify index, source fields when using splunk java logging?

juniormint
Communicator

I'm using the splunk java logging appenders. Are there hooks for setting things like source in my app config rather than relying on splunk forwarder config on the receiving end?

Tags (3)
0 Karma

Damien_Dallimor
Ultra Champion

If you use a REST Appender you can set this meta data at the source.

Have you looked at the example configs ?

0 Karma

juniormint
Communicator

I see...thanks again.

0 Karma

Damien_Dallimor
Ultra Champion

Yes. This is explained in the README ( https://github.com/damiendallimore/SplunkJavaLogging/blob/master/README.md ) and shown in the example config in the the link I posted in my previous reply.

0 Karma

juniormint
Communicator

Thanks for your answer Damien.

I'm just looking around...are there rest endpoints for sending data to a forwarder? I had been using a tcp appender sending data to a forwarder on the same host as my app.

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...