Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
# -- stdlib --
import json
import os
import urllib2
# -- third party --
# -- own --
# -- code --
{
"template": "logstash-*",
"settings" : {
"number_of_shards" : 1,
"number_of_replicas" : 0,
"index" : {
"query" : { "default_field" : "@message" },
"store" : { "compress" : { "stored" : true, "tv": true } }
}
},