Splunk Search

Why am I getting "Error in 'disabler' command: The external search command 'disabler' does not exist in commands.conf"?

annalisefolsen
Explorer

I have an app for a custom command called disabler and I am trying to call the command by:

... | disabler | ...

But I keep getting the error message:

Error in 'disabler' command: The external search command 'disabler' does not exist in commands.conf.

I have placed the commands.conf file in both the default and local folders and have restarted Splunk, but the results are always the same. This is my commands.conf file:

[disabler]
filename = splunkProgram.py
generating = true
local = true
maxinput = 0
0 Karma
1 Solution

annalisefolsen
Explorer

Okay, I have fixed this. This has the best explanations for setting up an app. I was told in other posts that logging.conf was optional, but apparently it is not. This should help anyone looking to answer this http://blogs.splunk.com/2014/04/14/building-custom-search-commands-in-python-part-i-a-simple-generat...

View solution in original post

annalisefolsen
Explorer

Okay, I have fixed this. This has the best explanations for setting up an app. I was told in other posts that logging.conf was optional, but apparently it is not. This should help anyone looking to answer this http://blogs.splunk.com/2014/04/14/building-custom-search-commands-in-python-part-i-a-simple-generat...

Get Updates on the Splunk Community!

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

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