How can I force the order of labels?

I have data with a label priority that I show on a heatmap:

The order at the bottom is not the one I would like to have (which is CRITICAL, HIGH, ...)

How can I instruct Kibana to use a specific order for the labels?

Hi @Wpq. If you are using Lens, try changing from Top Values to Filters. Then specify the order you'd like to arrange the buckets in the x-axis.

Here's a quick example where I'm specifying the order of the machine_name. Notice how "win xp" appears before "win 7" instead of ordered alphabetically?

3 Likes

Thank you @nickpeihl - this is exactly what I was looking for!

(I also mentioned your answer on Stack Overflow)

1 Like

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