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!

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

Global Splunk User Group Events: May + June 2026

Your Splunk Community Awaits: Discover Upcoming User Group Events Worldwide    Staying ahead in the fast-paced ...