Splunk Enterprise

Custom search command avoid chunked results

Unige2021
Loves-to-Learn

I have a processing Custom Search Command which needs to filter some results.

I need to pass to this command all the events from the previous pipeline, however I get only chunked events of 50 at a time.

This is the Commands.conf configuration:

[command]
python.version = python3
filename = command.py
chunked = true

The query I'd like to use is: 

index="main" | command

With chunked = true of course I get chunked results, however if I set it to false I get the following error:

External search command 'detectshipspoofing' returned error code 1. Script output = "error_message=RuntimeError at "/opt/splunk/etc/apps/detect_attacks/bin/splunklib/searchcommands/search_command.py", line 619 : Command detectshipspoofing appears to be statically configured for search command protocol version 1 and static configuration is unsupported by splunklib.searchcommands. Please ensure that default/commands.conf contains this stanza: [detectshipspoofing] filename = detect_ship_spoofing.py enableheader = true outputheader = true requires_srinfo = true supports_getinfo = true supports_multivalues = true supports_rawargs = true ". 

How can I avoid this?

Thank you in advace!

Labels (1)
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Self-Healing Pipeline Is Now Generally Available: AI-Powered CIM Compliance

Maintaining data integrity across security and analytics pipelines is an ongoing challenge. Data ...

[Puzzles] Solve, Learn, Repeat: Family Trees

This puzzle (first published here is based on finding grandparents and grandchildren (inspired by a question ...

Break the Build: Inside the KubeDoom Lounge at .conf26

    You step up to the machine. The pixelated corridors of a certain 1993 FPS load in front of you, EMP Pulse ...