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!

Turn Cisco Telemetry Into Action with Cisco Data Fabric, powered by the Splunk ...

The surge in machine data is already hitting enterprise budgets, and the agentic era will only intensify it. ...

Automated Threat Analysis: Available in ES Premier

Automated Threat Analysis: Centralize and Accelerate Phishing Investigations in Splunk Enterprise ...

What’s New in Splunk AI: Volume 02

Welcome to the second edition of “What’s New in Splunk AI” where we look at the latest and greatest updates, ...