Skip to main content
Version: 0.19.x

API

/api/1/groupby

Groups events over a field and return the counts for each value. Similar to an SQL query like:

select count(event_type), event_type from events group by event_type order by count desc;

Parameters:

  • time_range: The time range to search over, example: 1d or 24h.
  • field: The field name to group over.
  • order: Order of results. desc for most common, or asc for least common.