splunk / splunk-sdk-python

Splunk Software Development Kit for Python
http://dev.splunk.com
Apache License 2.0
687 stars 369 forks source link

Add search mode example #408

Closed fantavlik closed 2 years ago

fantavlik commented 2 years ago

To address https://github.com/splunk/splunk-sdk-python/issues/218 and others that may have similar questions about how to specify arbitrary search job parameters.

Run using:

$ python examples/search_modes.py 
Events found with adhoc_search_level="smart": 0
Events found with adhoc_search_level="verbose": 10