Splunk Search

Unknown search command - custon python script

apgersplunk1
Explorer

I am trying to use an external script (python) to retrieve data from a database (sqlite3) which is to be summarized within a dashboard. The python script is within a wrapper. command.conf in /default is detailed below. script is in the /bin dir. Runnning "|dumpTS" with the app search, I get "Unknown search command 'dumpts'." The script takes no input and returns column headers (csv delimited) and the associated rows of csv formatted data. Any ideas?

commands.conf

[dumpTS]

filename = dumpTS.py

generating = true

local = true

maxinputs = 0

1 Solution

Rocket66
Communicator

rename the command in "commands.conf" from "dumpTS" to "dumpts"

don't forget to restart splunk

View solution in original post

Rocket66
Communicator

rename the command in "commands.conf" from "dumpTS" to "dumpts"

don't forget to restart splunk

hortonew
Builder

I'm on 6.4.4 making a custom generating command and this just helped me. Have to make [commandstanza] all lowercase.

0 Karma

apgersplunk1
Explorer

Thank you very much. Renaming to lowercase fixed the issue.

0 Karma
Get Updates on the Splunk Community!

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

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