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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...