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!

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 ...

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 ...