Noob questions about Elastic datasource query

Hello everyone,
I’m new to grafana and elastics search, I’m looking for a solution to archive the kibana result but in Grafana.
in Kibana i can simply use terms by field and order by metric as below

but in Grafana, i can’t get it right, is there anything i did wrong? sorry, for my noob question, I really need help on this.


what i want to do is find out the top 5 IP count in client_ip.keyword
Thanks guys.

Hi @vincentcsm,

Once your Elasticsearch datasource is properly connected, I would try importing an Elasticsearch dashboard from our community. Pre-made dashboards are a great way to explore a new datasource.