Skip to main content
Sumo Logic

count

The count operator counts the number of time series that match a query.

Counts the total number of time series that match the query. If grouping is specified, it counts the total number for each group.

count syntax

count [by FIELD [, FIELD, ...]]    

count examples

Count of time series for a metric

This query returns the number of time series for the size metric. 

metric=size 

Count of time series for a metric by IP address

This query returns the number of time series for the size metric by src_ip. 

metric=size | count by src_ip