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!

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