简体   繁体   English

弹性搜索-如何检查kibana中是否使用了索引

[英]Elastic search - how to check if index is used in kibana

I am struggling with low disc space due to too many unused indices in ELK stack (ver 5.2). 由于ELK堆栈(版本5.2)中有太多未使用的索引,因此我在磁盘空间不足的情况下苦苦挣扎。 I am wondering how to check usage of particular index ie if it's used in visualization? 我想知道如何检查特定索引的使用情况,即是否在可视化中使用它?

btw. 顺便说一句 I have already checked if there are aliases associated with it via GET _cat/aliases?v 我已经通过GET _cat / aliases检查是否有别名与之关联?

thanks in advance! 提前致谢!

I managed to find the solution, 我设法找到了解决方案,

the governing index for all kibana used indices is .kibana which can found in Discover menu/index. 所有kibana使用的索引的控制索引是.kibana,可以在“发现”菜单/索引中找到。 Then all I had to do is to look for "_type" filter and spotted that some indices just don't appear in that search or only have "_type": "index_pattern" - which clearly says that it's just an index and it's not used for anything. 然后,我要做的就是寻找“ _type”过滤器,发现某些索引只是没有出现在该搜索中,或者只有“ _type”:“ index_pattern”-清楚地表明这只是一个索引,并且没有使用为了任何东西。

The opposite case would be is where "_type" shows "visualization","saved_Search" etc meaning that that particular index is actually used in kibana. 相反的情况是“ _type”显示“可视化”,“ saved_Search”等,这意味着该特定索引实际上是在kibana中使用的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM