Getting Data In

Editing outputs.conf through command line interface

pradeepkumar_n0
New Member

Hi Team,

Could some one please let us know, whether there is any command line option to edit the following options in outputs.conf.

[tcpout:project_example]
server = 192.168.10.1:8888, 192.168.10.2:8886
useACK=true

Regards,
Pradeep.

Tags (1)
0 Karma

kaufmanm
Communicator

No, the command line only allows you to set the default forward server with the splunk add forward-server command but does not allow you to set up custom tcpout stanzas like the above. If the issue is you can't edit the Splunk\etc\system\local\outputs.conf since it's telling you it's read only, you can copy the existing one on to your Desktop, edit it, and then overwrite it in the original location assuming you have Administrator privileges. After, you'll need to restart the Splunk service in order for it to change the settings.

If the issue instead you need to do everything from the command line for a script or such, you'll have to script something that works with the outputs.conf file directly rather than trying to interface with Splunk at the command line.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...