Get all fields of the pie chart to one filter

Hello everybody, I'm having this tedious issue which you may know solution for it.

Normally I get this kind of pie chart after some filtering on the data set.


And if I click on one of the field, it adds an extra filter for that field


Screenshot from 2021-05-31 15-58-18

However, I usually need to create a filter with all the current fields in the pie chart (for later analysis with other filters) like this:
Screenshot from 2021-05-31 15-59-27

Is there any quick way for me to grab all the returned fields in the pie chart, or even simply the list of them in a text, so I can quickly create the filter without manually typing all the fields down?

Hey @HieuTranTH, I don't know if it helps but you can use Inspect to get the current values. You can also download them to a CSV format. For example:

Parsing the downloaded CSV file into a Elasticsearch Query DSL filter with an external script is a possible solution though it is quite manual. I hope someone might know a way directly in Kibana that can easily achieve this.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.