3

elasticsearch常用命令

 2 years ago
source link: https://wakzz.cn/2018/09/09/elasticsearch/%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

elasticsearch常用命令

祈雨的博客
2018-09-09

查看集群状态

request

GET _cat/health?v

response

epoch      timestamp cluster        status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1536485402 17:30:02 my-application yellow 1 1 6 6 0 0 5 0 - 54.5%

查看所有index

request

GET _cat/indices?v

response

health status index     uuid                   pri rep docs.count docs.deleted store.size pri.store.size
green open .kibana UHQ4CLYzQECf_nxCqmsNMw 1 0 1 0 4kb 4kb
yellow open testindex cLKhtHKbScWNqjZPRmUAqw 5 1 3 0 11.5kb 11.5kb

index简单操作

新增index
PUT /test_index?pretty
删除index
DELETE /test_index?pretty

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK