Skip to content

Instantly share code, notes, and snippets.

@DominicWatts
Last active December 3, 2021 13:05
Show Gist options
  • Save DominicWatts/d39ab5673c9a91bcc9333a8dd7179042 to your computer and use it in GitHub Desktop.
Save DominicWatts/d39ab5673c9a91bcc9333a8dd7179042 to your computer and use it in GitHub Desktop.
Elasticsearch Cheatsheet
http://magento2.docker:9200/
http://magento2.docker:9200/_cluster/health
http://magento2.docker:9200/_cat/nodes?v&pretty
http://magento2.docker:9200/_cat/indices?v&pretty
curl -s -X GET "magento2.docker:9200/[indice]/_search?q=sku:ABC123"
curl -s -X GET "127.0.0.1:9200/[indice]/_search?q=sku:ABC123"
curl -s -X GET "magento2.docker:9200/_cat/indices?v&pretty"
curl -s -X GET "magento2.docker:9200/_cat/nodes?v&pretty"
curl -s -X GET "magento2.docker:9200/_cluster/health?pretty"
curl -s -X GET "magento2.docker:9200/_cluster/stats?human&pretty"
curl -s -X GET "magento2.docker:9200/_cluster/settings?pretty&include_defaults&flat_settings&filter_path=defaults" | grep "breaker"
curl -s -X GET "127.0.0.1:9200/_cat/indices?v&pretty"
curl -s -X GET "127.0.0.1:9200/_cat/nodes?v&pretty"
curl -s -X GET "127.0.0.1:9200/_cluster/health?pretty"
curl -s -X GET "127.0.0.1:9200/_cluster/stats?human&pretty"
curl -s -X GET "127.0.0.1:9200/_cluster/settings?pretty&include_defaults&flat_settings&filter_path=defaults" | grep "breaker"
https://elasticsearch-cheatsheet.jolicode.com/
# Cluster and node information
GET /_cluster/health?pretty
GET /_cluster/health?wait_for_status=yellow&timeout=50s
GET /_cluster/state
GET /_cluster/stats?human&pretty
GET /_cluster/pending_tasks
GET /_nodes
GET /_nodes/stats
GET /_nodes/nodeId1,nodeId2/stats
# Get the full reference of all the settings:
GET /_cluster/settings?include_defaults=true&flat_settings=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment