无法删除 Kibana 中的索引模式
Unable to delete index pattern in Kibana
我已经从 ELK 7.9 迁移到 ELK 7.15 以试图解决这个问题,但看起来所有的努力都没有用。我仍然无法通过控制台或 GUI 删除 Kibana 中的索引模式。
尝试从保存的对象部分删除它只会永远卡在这个屏幕上
从下面删除,暂时显示索引模式已经删除。但是一旦你重新加载页面,它又回来了
不过,弹性搜索索引确实被成功删除了。
从 devtools
尝试所有方法似乎也不起作用。一些尝试和相应的输出如下所示:
GET .kibana/_search
{
"_source": ["index-pattern.title"],
"query": {
"term": {
"type": "index-pattern"
}
}
}
{
"took" : 2,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 1,
"relation" : "eq"
},
"max_score" : 4.0535226,
"hits" : [
{
"_index" : ".kibana_7.15.0_001",
"_type" : "_doc",
"_id" : "index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30",
"_score" : 4.0535226,
"_source" : {
"index-pattern" : {
"title" : "all-security-bugs-from-jira"
}
}
}
]
}
}
DELETE /index_patterns/index_pattern/index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30
{
"error" : {
"root_cause" : [
{
"type" : "index_not_found_exception",
"reason" : "no such index [index_patterns]",
"resource.type" : "index_expression",
"resource.id" : "index_patterns",
"index_uuid" : "_na_",
"index" : "index_patterns"
}
],
"type" : "index_not_found_exception",
"reason" : "no such index [index_patterns]",
"resource.type" : "index_expression",
"resource.id" : "index_patterns",
"index_uuid" : "_na_",
"index" : "index_patterns"
},
"status" : 404
}
DELETE index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30
{
"error" : {
"root_cause" : [
{
"type" : "index_not_found_exception",
"reason" : "no such index [index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30]",
"resource.type" : "index_or_alias",
"resource.id" : "index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30",
"index_uuid" : "_na_",
"index" : "index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30"
}
],
"type" : "index_not_found_exception",
"reason" : "no such index [index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30]",
"resource.type" : "index_or_alias",
"resource.id" : "index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30",
"index_uuid" : "_na_",
"index" : "index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30"
},
"status" : 404
}
DELETE 822d7f50-7cd9-11ec-95d5-a3730f55fd30
{
"error" : {
"root_cause" : [
{
"type" : "index_not_found_exception",
"reason" : "no such index [822d7f50-7cd9-11ec-95d5-a3730f55fd30]",
"resource.type" : "index_or_alias",
"resource.id" : "822d7f50-7cd9-11ec-95d5-a3730f55fd30",
"index_uuid" : "_na_",
"index" : "822d7f50-7cd9-11ec-95d5-a3730f55fd30"
}
],
"type" : "index_not_found_exception",
"reason" : "no such index [822d7f50-7cd9-11ec-95d5-a3730f55fd30]",
"resource.type" : "index_or_alias",
"resource.id" : "822d7f50-7cd9-11ec-95d5-a3730f55fd30",
"index_uuid" : "_na_",
"index" : "822d7f50-7cd9-11ec-95d5-a3730f55fd30"
},
"status" : 404
}
GET /.kibana?pretty
不给出任何具有相关索引模式的文件。以下 2 个查询也证实了这一点
GET .kibana/index-pattern/822d7f50-7cd9-11ec-95d5-a3730f55fd30
{
"_index" : ".kibana_7.15.0_001",
"_type" : "index-pattern",
"_id" : "822d7f50-7cd9-11ec-95d5-a3730f55fd30",
"found" : false
}
GET .kibana/index-pattern/index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30
{
"_index" : ".kibana_7.15.0_001",
"_type" : "index-pattern",
"_id" : "index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30",
"found" : false
}
我一直在尝试遵循 https://discuss.elastic.co/t/cant-delete-index-pattern-in-kibana/148341/5
上的建议
非常感谢任何帮助理解我在这里做错了什么。
您没有从右侧索引中删除
执行以下操作删除:
DELETE .kibana/_doc/index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30
要获取您输入错误类型的文档,请尝试以下操作:
GET .kibana/_doc/index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30
我已经从 ELK 7.9 迁移到 ELK 7.15 以试图解决这个问题,但看起来所有的努力都没有用。我仍然无法通过控制台或 GUI 删除 Kibana 中的索引模式。
尝试从保存的对象部分删除它只会永远卡在这个屏幕上
从下面删除,暂时显示索引模式已经删除。但是一旦你重新加载页面,它又回来了
不过,弹性搜索索引确实被成功删除了。
从 devtools
尝试所有方法似乎也不起作用。一些尝试和相应的输出如下所示:
GET .kibana/_search
{
"_source": ["index-pattern.title"],
"query": {
"term": {
"type": "index-pattern"
}
}
}
{
"took" : 2,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 1,
"relation" : "eq"
},
"max_score" : 4.0535226,
"hits" : [
{
"_index" : ".kibana_7.15.0_001",
"_type" : "_doc",
"_id" : "index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30",
"_score" : 4.0535226,
"_source" : {
"index-pattern" : {
"title" : "all-security-bugs-from-jira"
}
}
}
]
}
}
DELETE /index_patterns/index_pattern/index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30
{
"error" : {
"root_cause" : [
{
"type" : "index_not_found_exception",
"reason" : "no such index [index_patterns]",
"resource.type" : "index_expression",
"resource.id" : "index_patterns",
"index_uuid" : "_na_",
"index" : "index_patterns"
}
],
"type" : "index_not_found_exception",
"reason" : "no such index [index_patterns]",
"resource.type" : "index_expression",
"resource.id" : "index_patterns",
"index_uuid" : "_na_",
"index" : "index_patterns"
},
"status" : 404
}
DELETE index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30
{
"error" : {
"root_cause" : [
{
"type" : "index_not_found_exception",
"reason" : "no such index [index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30]",
"resource.type" : "index_or_alias",
"resource.id" : "index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30",
"index_uuid" : "_na_",
"index" : "index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30"
}
],
"type" : "index_not_found_exception",
"reason" : "no such index [index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30]",
"resource.type" : "index_or_alias",
"resource.id" : "index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30",
"index_uuid" : "_na_",
"index" : "index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30"
},
"status" : 404
}
DELETE 822d7f50-7cd9-11ec-95d5-a3730f55fd30
{
"error" : {
"root_cause" : [
{
"type" : "index_not_found_exception",
"reason" : "no such index [822d7f50-7cd9-11ec-95d5-a3730f55fd30]",
"resource.type" : "index_or_alias",
"resource.id" : "822d7f50-7cd9-11ec-95d5-a3730f55fd30",
"index_uuid" : "_na_",
"index" : "822d7f50-7cd9-11ec-95d5-a3730f55fd30"
}
],
"type" : "index_not_found_exception",
"reason" : "no such index [822d7f50-7cd9-11ec-95d5-a3730f55fd30]",
"resource.type" : "index_or_alias",
"resource.id" : "822d7f50-7cd9-11ec-95d5-a3730f55fd30",
"index_uuid" : "_na_",
"index" : "822d7f50-7cd9-11ec-95d5-a3730f55fd30"
},
"status" : 404
}
GET /.kibana?pretty
不给出任何具有相关索引模式的文件。以下 2 个查询也证实了这一点
GET .kibana/index-pattern/822d7f50-7cd9-11ec-95d5-a3730f55fd30
{
"_index" : ".kibana_7.15.0_001",
"_type" : "index-pattern",
"_id" : "822d7f50-7cd9-11ec-95d5-a3730f55fd30",
"found" : false
}
GET .kibana/index-pattern/index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30
{
"_index" : ".kibana_7.15.0_001",
"_type" : "index-pattern",
"_id" : "index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30",
"found" : false
}
我一直在尝试遵循 https://discuss.elastic.co/t/cant-delete-index-pattern-in-kibana/148341/5
上的建议非常感谢任何帮助理解我在这里做错了什么。
您没有从右侧索引中删除
执行以下操作删除:
DELETE .kibana/_doc/index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30
要获取您输入错误类型的文档,请尝试以下操作:
GET .kibana/_doc/index-pattern:822d7f50-7cd9-11ec-95d5-a3730f55fd30