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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...