splunk-sdk-python
splunk-sdk-python copied to clipboard
Documentation: Usage for each example script
It took some time for me to understand how to run a search with certain filters and output filters. A couple of examples should be embedded in --help option, to make life easier. Ex:
To pull alerts from a host for last 5 minutes:
./search.py "search sender_ip=
A few examples with different output formatting options also
This is more of a spl thing. Please refer to https://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/UnderstandingSPLsyntax