Skip to content

Instantly share code, notes, and snippets.

@jordan-brough
Created August 24, 2012 15:48
Show Gist options
  • Save jordan-brough/3452180 to your computer and use it in GitHub Desktop.
Save jordan-brough/3452180 to your computer and use it in GitHub Desktop.
Extend splunk saved search TTL to 1 year
# 31536000 == 1 year (365 days) in seconds
curl -u <USERNAME>:<PASSWORD> --insecure https://<SPLUNK_URL>:8089/services/search/jobs/<JOB_ID>/control -d action=setttl -d ttl=31536000; echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment