Skip to main content

ElasticSearch commands summary

ES - ElasticSearch


GET Information (_cat)
Is alive
GET /

List aliases
GET /_cat/aliases?v

List indexes and status
GET /_cat/indices?v

Cluster health
GET /_cat/health?v
epoch      timestamp cluster                   status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1470922354 16:32:34  59jx1xw08xlm2cv3e8jrxgdrz yellow          1         1     10  10    0    0       10             0                  -                 50.0%
Nodes health
GET /_cat/nodes?v&h=id,host,version,jdk,disk,heapPercent,ramCurrent,cpu,node.role,master,name)
id   host  version jdk         disk heapPercent ramCurrent cpu node.role master
WpaE local 2.2.0   1.8.0_51 136.7gb           9      8.7gb   5 d         *     
Count number of documents
{
"query": {
"match_all": {}
}
}




/_cat can get ?help parameter to get help, ?v for displaying headers and ?h to ask for special files (like GET /_cat/nodes?v&h=id,host,version,jdk,disk,heapPercent,ramCurrent,cpu,node.role,master,name)



GET MQM documents
  

Get defects
GET /_search?q=subtype:defect&size=10000
GET features
GET /_search?q=subtype:feature

  • Default size is 10

Comments

Popular posts from this blog

Best freeware - XML editor

As a software developer, I open XML files all the time. I a heavy commercial XML editor. But nothing can compare to a small, thin and free XML editor like 'foxe'. A great feature is has is the alignment of long XML strings to readable XML format (Shift-F8). It help lot of times when the XML file was generated by some tool and was not readable. Homepage: http://www.firstobject.com/dn_editor.htm

Jenkins error: groovy.lang.MissingPropertyException

I tried to run groovy build step and got below error. This post will describe how I solved the problem. Caught: groovy.lang.MissingPropertyException: No such property: hudson for class: script

SSL in pictures

Here is my summary on SSL (or as I like to call it 'SSL for dummies')