Skip to content

secnnet/SplunkQueryAutomation.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Splunk Query Automation

Automate Splunk searches, parse XML outputs, and display results.

Prerequisites:

  • Python 3.x
  • Splunklib

Installation:

  1. Clone/download the script.
  2. pip install splunklib
  3. Edit script for Splunk details (username, password, host, port).

Usage:

Run python SplunkQueryAutomation.py (replace with actual filename).

Customization:

  • Adjust search_query for desired searches.
  • Edit display_output for custom result formats.

License:

MIT

See Splunk SDK for Python for detailed Splunklib usage.