Elasticsearch/Kibana可视化中的索引ID标识 [英] Index ID identification in Elasticsearch/Kibana visualization

查看:1143
本文介绍了Elasticsearch/Kibana可视化中的索引ID标识的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

"kibanaSavedObjectMeta": {
          "searchSourceJSON": "{\"index\":\"4eb9f840-3969-11e8-ae19-552e148747c3\",\"filter\":[],\"query\":{\"language\":\"lucene\",\"query\":\"\"}}"
        }

上述代码段是Kibana可视化文件的导出JSON.在不导出此json的情况下,有直接方法可以获取此json \"index\":\"4eb9f840-3969-11e8-ae19-552e148747c3\索引ID. 如果我没记错的话,那应该是索引ID,因为它在具有相同索引的可视化中是常见的.

The above mentioned snippet is a exported JSON of a Kibana visualization. Without exporting this json is there a direct way to get this \"index\":\"4eb9f840-3969-11e8-ae19-552e148747c3\ index id. And if i am not wrong this is supposed to be the index id as its common across visualization with same index.

推荐答案

因此,您可以使用此查询检索所有索引模式

So, you can retrieve all index patterns using this query

GET .kibana/_search?q=type:index-pattern&size=100

另外,您可以使用给定的名称检索特定的一组索引模式

Additionally, you can retrieve a specific set of index pattern given its name using

GET .kibana/_search?q=type:index-pattern%20AND%20index-pattern.title:indexname

类似地,对于可视化,您可以使用来按名称检索一个

Similarly, regarding visualizations, you can retrieve one by name using

GET .kibana/_search?q=type:visualization%20AND%20visualization.title:vizname

这篇关于Elasticsearch/Kibana可视化中的索引ID标识的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆