Skip to content

Instantly share code, notes, and snippets.

@rockdog
Created December 11, 2012 11:01
Show Gist options
  • Save rockdog/4257784 to your computer and use it in GitHub Desktop.
Save rockdog/4257784 to your computer and use it in GitHub Desktop.
Enable TTL and set default TTL for ElasticSearch/Graylog2
curl -XPUT "http://localhost:9200/graylog2/message/_mapping" -d'{"message": {"_ttl" : { "enabled" : true, "default" : "7d" }}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment