Skip to content

Instantly share code, notes, and snippets.

root@elk:~# curl -XGET "http://localhost:9200/_template"
{"default":{"order":-1,"index_patterns":["*"],"settings":{"index":{"number_of_shards":"5","number_of_replicas":"0"}},"mappings":{},"aliases":{}},"logstash-index-template":{"order":0,"index_patterns":[".logstash"],"settings":{"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","codec":"best_compression"}},"mappings":{"doc":{"_meta":{"logstash-version":"6.6.1"},"dynamic":"strict","properties":{"description":{"type":"text"},"last_modified":{"type":"date"},"pipeline_metadata":{"properties":{"version":{"type":"short"},"type":{"type":"keyword"}}},"pipeline":{"type":"text"},"pipeline_settings":{"dynamic":false,"type":"object"},"username":{"type":"keyword"},"metadata":{"type":"object","dynamic":false}}}},"aliases":{}},"security-index-template":{"order":1000,"index_patterns":[".security-*"],"settings":{"index":{"format":"6","analysis":{"filter":{"email":{"type":"pattern_capture","preserve_original":"true","patterns":["([^@]+)","(\\p{L}+)","(\\d+)","@(.+