Splunk Enterprise

what directory should I put commands.conf

alexl1
Path Finder

I am in /opt/apps/splunk/etc/apps/search/default

when I edit commands.conf it says

DO NOT EDIT THIS FILE!

Please make all changes to files in $SPLUNK_HOME/etc/system/local

does that mean I should make a new commands.conf with my new command and place in /opt/apps/splunk/etc/apps/search/local ?

thanks

Tags (1)
0 Karma
1 Solution

jbsplunk
Splunk Employee
Splunk Employee

You could make changes to a file in /etc/apps/search/default/and they would work, until you upgraded. The reason you're instructed to make changes in /local is that those changes are preserved on upgrade. So yes, you should either copy, or make a new file called commands.conf in $SPLUNK_HOME/etc/apps/search/local for your new command.

View solution in original post

jbsplunk
Splunk Employee
Splunk Employee

You could make changes to a file in /etc/apps/search/default/and they would work, until you upgraded. The reason you're instructed to make changes in /local is that those changes are preserved on upgrade. So yes, you should either copy, or make a new file called commands.conf in $SPLUNK_HOME/etc/apps/search/local for your new command.

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...