簡體   English   中英

無法在 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

沒有給出任何具有相關索引模式的文檔。 以下兩個查詢也證實了這一點

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM