Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Counts the events or non-null grouped values.

count(xs:list) -> int

The count function returns the number of non-null values in xs. When used without arguments, it counts the total number of events.

The values to count.

from {x: 1}, {x: null}, {x: 2}
summarize total=count(x)
{total: 2}

Last updated: