Automate Splunk searches, parse XML outputs, and display results.
- Python 3.x
- Splunklib
- Clone/download the script.
pip install splunklib
- Edit script for Splunk details (username, password, host, port).
Run python SplunkQueryAutomation.py
(replace with actual filename).
- Adjust
search_query
for desired searches. - Edit
display_output
for custom result formats.
MIT
See Splunk SDK for Python for detailed Splunklib usage.