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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...