Skip to content

Instantly share code, notes, and snippets.

@stephenleo
Last active February 3, 2022 08:17
Show Gist options
  • Save stephenleo/16bad9cb312262572dcae59b0b425e98 to your computer and use it in GitHub Desktop.
Save stephenleo/16bad9cb312262572dcae59b0b425e98 to your computer and use it in GitHub Desktop.
ElasticSearch

Useful ES commands

  1. Check available nodes: curl 'http://<ip_address>:9200/_cat/nodes?v'
  2. Check available indices: curl 'http://<ip_address>:9200/_cat/indices?v'
  3. Delete a specific index: curl -X DELETE 'http://<ip_address>:9200/<index_name>?pretty'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment