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!

Observability | How to Think About Instrumentation Overhead (White Paper)

Novice observability practitioners are often overly obsessed with performance. They might approach ...

Cloud Platform | Get Resiliency in the Cloud Event (Register Now!)

IDC Report: Enterprises Gain Higher Efficiency and Resiliency With Migration to Cloud  Today many enterprises ...

The Great Resilience Quest: 10th Leaderboard Update

The tenth leaderboard update (11.23-12.05) for The Great Resilience Quest is out >> As our brave ...