Skip to content

Instantly share code, notes, and snippets.

@sduff
sduff / splunk_modify_saved_search.py
Created September 5, 2017 07:16
Modify a Splunk Saved Search via Python, using Requests
import time # need for sleep
from xml.dom import minidom
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
base_url = 'https://localhost:8089'
username = 'admin'
password = 'changeme'

Keybase proof

I hereby claim:

  • I am sduff on github.
  • I am sduff (https://keybase.io/sduff) on keybase.
  • I have a public key whose fingerprint is AF46 80FD 273B CEE0 FDEE 56B9 D2A5 9C26 9D71 78FB

To claim this, I am signing this object: