提问:布和纸怕什么?

ES2.3版本,delete一个索引,master日志并没有记录相关delete操作?

Elasticsearch | 作者 printf_uck | 发布于2019年01月25日 | 阅读数:3982

如题,我用的ES2.3版本,创建索引的时候,例如创建 PUT test-4,master日志如下:
[test-4] creating index, cause [api], templates [], shards [5]/[1], mappings []
但是 delete test-4的时候,master节点并没有删除的相关日志,想问下这个是怎么回事儿,我log-level设定的问题吗?
已邀请:

weizijun - elasticsearch fan

赞同来自: JackGe printf_uck

PUT _cluster/settings
{
  "persistent": {
    "logger.cluster.service": "DEBUG"
  }
}
 
打开cluster.service的debug,能看到创建、删除索引的日志

JackGe

赞同来自: weizijun printf_uck

在2.3.3版本的ES测试集群操作创建和删除索引,是有相关日志的,如下:
[2019-01-25 12:50:19,786][DEBUG][cluster.service          ] [es-test-03] processing [create-index [test-4], cause [api]]: execute
[2019-01-25 12:50:19,790][INFO ][cluster.metadata ] [es-test-03] [test-4] creating index, cause [api], templates [], shards [5]/[1], mappings []
[2019-01-25 12:51:04,310][DEBUG][cluster.service ] [es-test-03] processing [delete-index [test-4]]: execute
[2019-01-25 12:51:04,310][DEBUG][cluster.metadata ] [es-test-03] [test-4] deleting index

GET _cluster/settings?flat_settings 中
{
"persistent": {
..........
"logger.cluster": "debug"
}
}

laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net

赞同来自:

不重要,你通过kibana或者head插件看到对应的删除信息就可以了。
 
删除索引后返回信息:
{
"acknowledged" : true
}

要回复问题请先登录注册