[英]How can I create a list of values for a field in Kibana?
I am using Kibana to view data from Elasticsearch index.我正在使用 Kibana 查看来自 Elasticsearch 索引的数据。 There is a field only has a few values.有一个字段只有几个值。 When I do search the field, how can I make the search bar as a select
rather than a free text input
?当我搜索该字段时,如何将搜索栏设为select
而不是free text input
? I know that there is a filter list like below image:我知道有一个如下图所示的过滤器列表:
but it doesn't work for the case that top 5 values in 500 records have one value.但它不适用于 500 条记录中的前 5 个值只有一个值的情况。 How can I show all values in the history as a list for a field?如何将历史记录中的所有值显示为字段列表?
I think your are looking for "controls" visualization.我认为您正在寻找“控件”可视化。
Go to visualization > controls转到可视化>控件
Then choose option list, your index and your field.然后选择选项列表、索引和字段。 The result will be a dropdown with values like if you did a select distinct on your field within the whole kibana range.结果将是一个带有值的下拉列表,就像您在整个 kibana 范围内在您的字段上选择了不同的值一样。
Add it to a dashboard to have a filtering interface human usable dashboard.将其添加到仪表板以拥有一个过滤界面人类可用的仪表板。
Update: Maybe a simple filter on the discover page can answer to your question.更新:也许发现页面上的一个简单过滤器可以回答您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.