Skip to content

Instantly share code, notes, and snippets.

@vietvudanh
Last active November 30, 2019 09:44
Show Gist options
  • Save vietvudanh/45b0af7f141a7c6f926c8ddc3c95c556 to your computer and use it in GitHub Desktop.
Save vietvudanh/45b0af7f141a7c6f926c8ddc3c95c556 to your computer and use it in GitHub Desktop.
Elasticsearch Commands
# metadata
GET _cat/indices?
# m, d,i
GET _cat/nodes?V&s=ip:asc
GET _cat/master?v
GET _cat/shards?v
GET _cat/allocations?v
GET _cluster/heatlh
GET _nodes/stats
# find tasks
GET _tasks?actions=*reindex*
# reindex
# set refresh_interval to -1 first
# remember to put back to "1s"
POST /index/_settings
{
"refresh_interval": -1
}
POST _reindex
{
"source": {
"index": "A"
},
"dest": {
"index": "B"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment