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
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...