#TIL : Basics of Elasticsearch

Jan 25, 2018 4 mins read 8d4302659

Basics of Elasticsearch

Last days, I developed a EFK stack to centralize my system logging. I really like the concepts of FluentD, it’s better than original stack ELK of elastic company.

So I need to learn basics about Elasticsearch and Kibana

This is what I learned :

# Get all documents from elasticsearch node
GET _search
{
  "query": {
    "match_all": {}
  }
}

# Check nodes statistics
GET /_nodes/stats

# Check health of cluster (I don't know why it is always yello status)
GET _cluster/health

# Get list of indices (indexes)
GET /_cat/indices?v

# Delete a index (with its data) with name
DELETE /[index-name]
comments powered by Disqus