Getting Data In

Writing in outputs.conf using the right endpoint ?

thibault28
Engager

Hi,

I am using Splunk Enterprise and I need to be able to write into the outputs.conf file using the browser. I haven't found the right endpoint yet so I am just wondering if it is possible.

Thanks

0 Karma
1 Solution

renjith_nair
SplunkTrust
SplunkTrust

Try this ,

http://docs.splunk.com/Documentation/Splunk/6.0/RESTAPI/RESTconfig#POST_configs.2Fconf-.7Bfile.7D

Below works for me

curl -k https://localhost:8089/servicesNS/nobody/search/configs/conf-outputs -d name=test_output_endpoint -d SHOULD_LINEMERGE=false

 bin]$ ./splunk btool outputs list test_output_endpoint
[test_output_endpoint]
SHOULD_LINEMERGE = false
Happy Splunking!

View solution in original post

renjith_nair
SplunkTrust
SplunkTrust

Try this ,

http://docs.splunk.com/Documentation/Splunk/6.0/RESTAPI/RESTconfig#POST_configs.2Fconf-.7Bfile.7D

Below works for me

curl -k https://localhost:8089/servicesNS/nobody/search/configs/conf-outputs -d name=test_output_endpoint -d SHOULD_LINEMERGE=false

 bin]$ ./splunk btool outputs list test_output_endpoint
[test_output_endpoint]
SHOULD_LINEMERGE = false
Happy Splunking!

thibault28
Engager

Thanks, this is what I was looking for.

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