Splunk Enterprise

inputs.conf access by root only??!?!

kristiaan_d
Explorer

Hi Everyone, i am having problems configuring a splunk app, here are the instructions.

  1. Configure a 'Light Weight Forwarder' on the Nagios server

    • cd $SPLUNK_HOME/bin (eg. cd /opt/splunk/bin)
    • ./splunk add monitor $NAGIOS_HOME/var/nagios.log -sourcetype nagios -hostname hostname.com Remember to replace $NAGIOS_HOME with the relevant directory (eg. /opt/nagios)
    • edit $SPLUNK_HOME/etc/apps/search/local/inputs.conf on the Nagios server and add the following key/value pair:

index = nagios

  • restart the Splunk LWF agent.

THe problem comes when i try to update the inputs.conf file, the folder this is stored in is owned by ROOT. i have tried Sudo Nano /local/inputs.conf to try and get around not being able to access the folder but nothing i do works.

how do i change this???

the linux box is running a version of Ubuntu Server, and the splunk software has just been installed and configured to run as a Light weight Forwarder.

thanks Kris

0 Karma
1 Solution

vaijpc
Communicator

Are you typing exactly

Sudo Nano /local/inputs.conf

as that won't work?

If you are in $SPLUNK_HOME/etc/apps/search (e.g. /opt/splunk/etc/apps/search) try

sudo nano local/inputs.conf

View solution in original post

0 Karma

vaijpc
Communicator

Are you typing exactly

Sudo Nano /local/inputs.conf

as that won't work?

If you are in $SPLUNK_HOME/etc/apps/search (e.g. /opt/splunk/etc/apps/search) try

sudo nano local/inputs.conf
0 Karma

vaijpc
Communicator

You may be interested to know that it works in the same way on Windows. Start a path with '\' on windows, or '/' on linux and it will think you want to start at the 'root' of the drive'. I'm afraid it was only doing what you told it to do 🙂

0 Karma

kristiaan_d
Explorer

😄 that sorted it, seems linux was taking offence to me putting in the / on /local/

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...