Getting Data In

How to change the host name in inputs.conf on Linux?

vxl65703
New Member

I need to change the host name in inputs.conf in Linux, can anyone tell me the Linux commands I need? Also, are there instructions for making the changes using the deployment servers ?

0 Karma

jkat54
SplunkTrust
SplunkTrust

Assuming you want to change the host=______ in an existing inputs.conf on a linux system:

First try this because you're probably best suited for nano if youre a windows guy

cd /opt/splunkforwarder/etc/inputsApp/default/
nano inputs.conf

make your edits then press ctrl+o to write Out the edits, and ctrl+x to eXit the nano editor

if nano doesnt work, you'll have to use vi/vim

vi inputs.conf

go to the host= line, press i for insert, make your changes, press escape to exit insert mode, type :wq and press enter ( : opens a context/command line interface at bottom of vi, w is for write, q is for quit)

All this assumes inputs.conf is in that directory "/opt/splunkforwarder/etc/inputsApp/default/"... yours will most definitely be somewhere else.

now restart splunk to reload the inputs.conf:
/opt/splunkforwarder/bin/splunk restart

0 Karma

vxl65703
New Member

Willl this work using Putty or SSH ?

0 Karma

jkat54
SplunkTrust
SplunkTrust

Using putty to ssh, yes.

0 Karma

jkat54
SplunkTrust
SplunkTrust

I think you should ask a linux admin for help

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!

Agent Mode Engaged! Enchaining Agentic Operations with Splunk AI Assistant 2.0

    Are you ready to transform how your team handles complex data requests? We invite you to our upcoming ...

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

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...