Elasticsearch

Elasticsearch search engine commands and queries

16 commands
Search & Copy
Save Favorites
16
Total Commands
100%
Free Access
Lightning Fast

Available Commands

Click on any command to copy it instantly

16 commands available
16 of 16
Resources

Master Elasticsearch

Become proficient in Elasticsearch search engine

elasticsearch

Check Cluster Health

Get overall Elasticsearch cluster health

curl -X GET 'http://localhost:9200/_cluster/health?pretty'
elasticsearch
cluster
health
elasticsearch

Cluster Stats

View cluster-wide statistics

curl -X GET 'http://localhost:9200/_cluster/stats?pretty'
elasticsearch
cluster
stats
elasticsearch

Node Stats

Get stats for all nodes

curl -X GET 'http://localhost:9200/_nodes/stats?pretty'
elasticsearch
node
stats
elasticsearch

List Indices

List all indices with details

curl -X GET 'http://localhost:9200/_cat/indices?v'
elasticsearch
indices
list
elasticsearch

Check Cluster Health

Get overall Elasticsearch cluster health

curl -X GET 'http://localhost:9200/_cluster/health?pretty'
elasticsearch
cluster
health
elasticsearch

Cluster Stats

View cluster-wide statistics

curl -X GET 'http://localhost:9200/_cluster/stats?pretty'
elasticsearch
cluster
stats
elasticsearch

Node Stats

Get stats for all nodes

curl -X GET 'http://localhost:9200/_nodes/stats?pretty'
elasticsearch
node
stats
elasticsearch

List Indices

List all indices with details

curl -X GET 'http://localhost:9200/_cat/indices?v'
elasticsearch
indices
list
elasticsearch

Reindex Data

Copy data from one index to another

curl -X POST 'http://localhost:9200/_reindex?pretty' -H 'Content-Type: application/json' -d '{"source":{"index":"old_index"},"dest":{"index":"new_index"}}'
elasticsearch
reindex
elasticsearch

Manage Aliases

Add alias to index

curl -X POST 'http://localhost:9200/_aliases?pretty' -H 'Content-Type: application/json' -d '{"actions":[{"add":{"index":"my_index","alias":"current"}}]}'
elasticsearch
alias
elasticsearch

Create Snapshot

Take snapshot of indices

curl -X PUT 'http://localhost:9200/_snapshot/my_backup/snapshot_1?wait_for_completion=true&pretty'
elasticsearch
snapshot
backup
elasticsearch

Restore Snapshot

Restore index from snapshot

curl -X POST 'http://localhost:9200/_snapshot/my_backup/snapshot_1/_restore?pretty'
elasticsearch
snapshot
restore
elasticsearch

Analyze Text

Run analyzer on text

curl -X GET 'http://localhost:9200/_analyze?pretty' -H 'Content-Type: application/json' -d '{"text":"Elasticsearch is awesome"}'
elasticsearch
analyze
text
elasticsearch

Generate Certificates

Generate certificates for security

elasticsearch-certutil cert --ca elastic-stack-ca.p12
elasticsearch
security
cert
elasticsearch

Manage Keystore

Create Elasticsearch keystore

elasticsearch-keystore create
elasticsearch
security
keystore
elasticsearch

Setup Built-in User Passwords

Set passwords for built-in users

elasticsearch-setup-passwords interactive
elasticsearch
security
passwords

Missing a command?

Help us improve this collection by suggesting commands that should be added. Your contributions help the entire developer community!