This worked for me, too, but I would also like to visualize this data: just a simple bar graph to show name:count pairs. How would I do that?
In Kibana, if I understand correctly, these queries I run under "Dev Tools". I was expecting that the query can be saved as some kind of field/index/script that I could then call in a visualization lens to display. But, it seems that things are not so simple and I'm a bit stuck here.
Any tip would be great. Thanks :-)