Grafanano signalmediumCluster of 7 signals
Card #3612 · Grafana

Limited grouping and aggregation capabilities for Elasticsearch datasource

Users are struggling to perform complex aggregations, such as grouping by terms with top-hit sorting or ignoring seconds in timestamps for table counts. There is a recurring need for more flexible 'group by' and 'timestamp' options within the Elasticsearch query builder to avoid writing raw JSON.

GrafanaUpdated 1d ago0.62
Pain score
0.62/ 1.00 · weighted product of four components
Reach0.95
distinct authors (log-normalized)
Recency1.00
freshness decay, half-life months
Engagement0.70
upvotes + comments, normalized
Monetization0.25
willingness-to-pay cues in evidence
§ Evidence — 3 verified quotes
I think grafana should also provide ‘group by’ and ‘timestamp’ options for ‘raw documents’ for elasticsearch datasource.
Forum·@crazyindark··source ↗
I want to query ElasticSearch datasource to group by a term, sort by a timestamp, and to select the TOP result for each group. I don’t know how to build this in the Query Builder
Forum·@mgrua··source ↗
How i can ignore second in grafana to get above result? Need your help to resolve . My data source is Elasticsearch
Forum·@jaikumark··source ↗

Comments are a Pro feature — join the conversation, share what you've shipped, hear what others are building.

Upgrade to Pro