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!

Now Playing: Splunk Education Summer Learning Premieres

It’s premiere season, and Splunk Education is rolling out new releases you won’t want to miss. Whether you’re ...

The Visibility Gap: Hybrid Networks and IT Services

The most forward thinking enterprises among us see their network as much more than infrastructure – it's their ...

Get Operational Insights Quickly with Natural Language on the Splunk Platform

In today’s fast-paced digital world, turning data into actionable insights is essential for success. With ...