Estimate distinct log values with approx_count_distinct
Update4 days agoUnverifiedAdded Oct 2, 2026
Estimate how many distinct values appear in your logs when an exact count would create too many series. count by ( ) returns one series for every distinct value. For a field such as a user ID, IP address, or session token, that series count can hit Loki’s maximum series limit or time out the query.
Topics: SQL, Observability, Developer tools
More Grafana Cloud releases
Every Grafana Cloud release| Date | Release | Type |
|---|---|---|
| Sep 294 days ago | Update | Update |
| Sep 303 days ago | Preview | Preview |
| Sep 303 days ago | Recommended Usage Alerts unverified GA | GA |
| Oct 12 days ago | Update | Update |
| Sep 258 days ago | Update | Update |
| Sep 249 days ago | New panel query errors and notices UI unverified Update | Update |
| Sep 249 days ago | Update | Update |
| Sep 249 days ago | GA | GA |
Also shipped on Sep 29, 2026
Grafana Labs in September 2026| Date | Company | Release | Product | Type |
|---|---|---|---|---|
| Sep 294 days ago | Databricks Apps | GA | ||
| Sep 294 days ago | New Relic | GA | ||
| Sep 294 days ago | CodeRabbit | Beta | ||
| Sep 294 days ago | Cloud Run | GA | ||
| Sep 294 days ago | Rich link previews for Agent Runners sites unverified | Netlify | Preview | |
| Sep 294 days ago | DigitalOcean | GA |