Getting Data In

Why am I getting error "Couldn't establish REST service for SplunkRestAppender named 'splunkrest'" trying to integrate Splunk with log4j?

esudharaka
New Member

I am trying to run Example logging in https://github.com/damiendallimore/SplunkJavaLogging with log4j configurations. When i try write logs in to splunk using REST API I am getting following error.

log4j:ERROR Couldn't establish REST service for SplunkRestAppender named "splunkrest".

I cant find a way to setup this service end point in splunk setup. What might be the issue ?

Tags (4)
0 Karma

fross_splunk
Splunk Employee
Splunk Employee

The HTTP receivers don't appear in the input configuration. They're just REST endpoints that any logged in REST session can send data to. They are also the least performant of Splunk's inputs, and you should avoid them if you have other options. You will be much better served by writing to a file and monitoring it with a universal forwarder, or writing directly to a TCP or UDP input.

Your best bet is to email Damien Dallimore, who wrote the code, directly.

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