Splunk Search

Custom Command in Splunk

ansusabu
Communicator

I have created a python script and it is taking an argument . I have declared it ,like this`

hash = Option(
        doc='''
        **Syntax:** **ioc=***<fieldname>*
        **Description:** Name of the field which contains the hash''',
        require=True, validate=validators.Fieldname())`

No when I call the command "|command hash="1223333" from search, it is throwing "A value for *** command option hash is required". How to resolve the error?

0 Karma
Get Updates on the Splunk Community!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...