Kibana - 给定一个索引,如何找到依赖于它的保存对象?

Kibana - given an index, how to find saved objects relying on it?

在 Kibana 我有几十个索引。
给定其中一个,我想要一种方法来查找依赖于该索引的所有已保存对象 (searches/dashboards/visualizations)。

谢谢

您可以检索索引模式的文档 ID,然后使用它来搜索您的 .kibana 索引

  {
    "_index" : ".kibana",
    "_type" : "index-pattern",
    "_id" : "AWBWDmk2MjUJqflLln_o",          <---- take this id...

您可以在 Kibana 5 上使用此查询:

GET .kibana/_search?q=AWBWDmk2MjUJqflLln_o   <---- ...and use it here

您会发现您的可视化效果:

  {
    "_index" : ".kibana",
    "_type" : "visualization",
    "_id" : "AWBZNJNcMjUJqflLln_s",
    "_score" : 6.2450323,
    "_source" : {
      "title" : "CA groupe",
      "visState" : """{"title":"XXX","type":"pie","params":{"addTooltip":true,"addLegend":true,"legendPosition":"right","isDonut":false,"type":"pie"},"aggs":[{"id":"1","enabled":true,"type":"sum","schema":"metric","params":{"field":"XXX","customLabel":"XXX"}},{"id":"2","enabled":true,"type":"terms","schema":"segment","params":{"field":"XXX","size":5,"order":"desc","orderBy":"1","customLabel":"XXX"}}],"listeners":{}}""",
      "uiStateJSON" : "{}",
      "description" : "",
      "version" : 1,
      "kibanaSavedObjectMeta" : {
        "searchSourceJSON" : """{"index":"AWBWDmk2MjUJqflLln_o","query":{"match_all":{}},"filter":[]}"""
                                                   ^
                                                   |
                               this is where your index pattern is used
      }
    }
  },