Search code examples
elasticsearchkibana

How can I create a list of values for a field in Kibana?


I am using Kibana to view data from Elasticsearch index. 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? I know that there is a filter list like below image:

enter image description here

but it doesn't work for the case that top 5 values in 500 records have one value. How can I show all values in the history as a list for a field?


Solution

  • I think your are looking for "controls" visualization. enter image description here

    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.

    Add it to a dashboard to have a filtering interface human usable dashboard. enter image description here

    Update: Maybe a simple filter on the discover page can answer to your question. enter image description here