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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...