Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 702 Bytes

Basics-of-Elasticsearch.md

File metadata and controls

33 lines (23 loc) · 702 Bytes
  • Date : 2018-01-25
  • Tags : #elasticsearch #logging #system

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]