## Node command line options
## See `node --help` and `node --v8-options` for available options
## Please note you should specify one option per line
## max size of old space in megabytes
--max-old-space-size=2048
# 删除匹配以下关键字的索引
DELETE *-2022.02
delete .reporting-2022-03*
delete demo-mml*2022.08
delete pro-mml*2022.06
DELETE *2022.07
delete logserver-0002-syslog-2022.02
# 查看ES健康状态
GET /_cat/health
# 查看ES节点
GET /_cat/nodes
# 修改索引副本数量
PUT /logserver-0002-syslog-2022.07/_settings
{
"index" : {
"number_of_replicas" : 0
}
}
# 批量修改索引副本数量
PUT /*2022.05/_settings
{
"index" : {
"number_of_replicas" : 0
}
}
# 查看所有索引
GET /_cat/indices?v
get /_cat/indices/pro-api*?v
get /_cat/indices/pro-fng-front-1-2022.04
# 查看pro开头的索引
GET /_cat/indices/pro*2022.06?v
GET /_cat/indices/*2022.08
get /_cat/indices/pro-core-1*?v
get /_cat/indices/pro-core-1-2022.04?v
GET /_cat/indices/demo*?v
get /_cat/indices/demo-*2022.04?v
GET /_cat/indices/*2022.08*?v
# 查看索引健康,状态等信息
GET /_cat/shards/pro-core-1-2022.01
GET /_cat/shards/pro-web-1-2022.01
# 查看具体索引的详细信息
GET /pro-web-1-2022.01
# 查看索引信息
GET /pro-core-1-2022.03