All Apps and Add-ons

Error with splunk appenders in log4j xml

Rahul756
Loves-to-Learn

i used that appender in log4j.xml and i have localy splunk enterprise installed

 

<Appenders>
<Http name="http" url="https://localhost:8000.cloud.splunk.com/services/collector" token="f8196ae1-ef66-459e-a1c0-17359053ea14" disableCertificateValidation="true">
 <PatternLayout pattern="%-5p | %d{yyyy-MM-dd HH:mm:ss} | [%t] %C{2} (%F:%L) - %m%n" />
	</Appenders>

 

  and i got this error

ERROR StatusLogger Unable to send HTTP in appender [http]

Solution please

Labels (1)
Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust
Port 8000 is for the user interface, not for collecting logs. Try using port 8088.
---
If this reply helps you, Karma would be appreciated.
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 ...