User Tools

Site Tools


elasticsearch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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/08/09 16:07]
k2patel [Quick Commands]
Line 10: Line 10:
 <code bash> <code bash>
 curl -XGET '​http://​localhost:​9200/​_nodes?​pretty=true'​ curl -XGET '​http://​localhost:​9200/​_nodes?​pretty=true'​
 +</​code>​
 +
 +== List all Indexes ==
 +<code bash>
 +curl http://​localhost:​9200/​_cat/​indices?​v
 </​code>​ </​code>​
  
Line 20: Line 25:
 <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 78:
             "​@version":​ {             "​@version":​ {
                "​type":​ "​keyword"​                "​type":​ "​keyword"​
 +            },
 +            "​beat.hostname":​ {
 +               "​type":​ "​string",​
 +               "​index":​ "​not_analyzed",​
 +               "​ignore_above":​ 1024
             },             },
             "​geoip":​ {             "​geoip":​ {
elasticsearch.txt ยท Last modified: 2021/01/25 23:41 by k2patel