Splunk Search

custom generating command 'Command xxx appears to be statically configured for search command protocol version 1'

pmeyerson
Path Finder

I am attempting to use custom generating command protocol version 2, but my command seems to be detected as version 1 still.

commands.conf:

[datascrape] filename = xxx.py
chunked = true

xxx.py:

@Configuration(type='events') class
xxxCommand(GeneratingCommand):
...
def generate(self):
... yield xxx
... self.finish()
...
@staticmethod
def foo():

Even if I replace the commands.conf config with the specified version 1 arguments, I still get the error message, even after splunk restarts.

Thanks for any pointers

0 Karma
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...