This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
elasticsearch [2018/01/18 22:20] k2patel [Templates] |
elasticsearch [2018/06/21 21:52] k2patel [Quick Commands] |
||
---|---|---|---|
Line 20: | Line 20: | ||
<code bash> | <code bash> | ||
curl -XGET 'http://localhost:9200/_cat/shards/filebeat?pretty=true' | curl -XGET 'http://localhost:9200/_cat/shards/filebeat?pretty=true' | ||
+ | </code> | ||
+ | |||
+ | == Delete indexes == | ||
+ | <code bash> | ||
+ | curl -XDELETE 'http://localhost:9200/*.reindex' | ||
</code> | </code> | ||
==== Templates ==== | ==== Templates ==== | ||
Line 68: | Line 73: | ||
"@version": { | "@version": { | ||
"type": "keyword" | "type": "keyword" | ||
+ | }, | ||
+ | "beat.hostname": { | ||
+ | "type": "string", | ||
+ | "index": "not_analyzed", | ||
+ | "ignore_above": 1024 | ||
}, | }, | ||
"geoip": { | "geoip": { |