Last updated
Was this helpful?
Last updated
Was this helpful?
The count()
function returns the number of unique objects or punctual events.
It returns the number of unique objects.
It computes the number of events per object.
It is not recommended to use the count()
function on sampled events as it will return the number of data samples, not the actual number of events.
When used with the summarize
clause, the count()
function always returns the number of records in the root table.
It returns the number of objects.
It returns the number of events.
Note that the following query returns the number of records of root table (in this case, devices), not the number of unique events. To count events, use the sum()
function in the summarize
clause instead.
It is not recommended to use the count()
function on sampled events as it will return the number of data samples, not the actual number of events.