All Apps and Add-ons

Send log4j output to splunk

omidizadkhasti
New Member

Dear Sir/Madam,

I am going to use Splunk to send my java application logs from different servers to Splunk.
I have created a SocketAppender in log4j.properties. Moreover, I have created a TCP data inputs on same port on Splunk.
But when I run my application it said there is not any listener on this port.
Could you please how can I fix this issue?
Moreover, is there any special appender for log4j in Splunk.

Thanks,
Omid

Tags (1)
0 Karma

brettcave
Builder

An effective way of getting log4j data to splunk is to use a syslog appender. more info

Check out this discussion

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