splunk-sdk-python icon indicating copy to clipboard operation
splunk-sdk-python copied to clipboard

Documentation: Usage for each example script

Open sriramb12 opened this issue 10 years ago • 1 comments

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= earliest=-5m To pull alerts from a host for last 2 hours: ./search.py "search sender_ip= earliest=-2h

A few examples with different output formatting options also

sriramb12 avatar Oct 06 '16 08:10 sriramb12

This is more of a spl thing. Please refer to https://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/UnderstandingSPLsyntax

snickers2029 avatar Feb 23 '18 18:02 snickers2029