Skip to content

Instantly share code, notes, and snippets.

@kilfu0701
Created February 14, 2019 02:11
Show Gist options
  • Save kilfu0701/c8acebd153102170f96ec2d24ecd6a40 to your computer and use it in GitHub Desktop.
Save kilfu0701/c8acebd153102170f96ec2d24ecd6a40 to your computer and use it in GitHub Desktop.
Some useful commands for ElasticSearch.
  • Show status
curl 'localhost:9200/_cat/indices?v'
  • Show indexes
curl -XGET localhost:9200/_alias?pretty
  • Update settings
curl --header "Content-Type: application/json;" \
     -XPUT "http://localhost:9200/_settings" -d'
{
    "index.search.slowlog.threshold.query.debug": "0s",
    "index.search.slowlog.threshold.fetch.debug": "0s",
    "index.indexing.slowlog.threshold.index.debug": "0s"
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment