count
The count operator returns the number of all input events.
countis a short form ofsummarize count=count().
Syntax
Scope | count
Arguments
- Scope: The events to search.
Results
Returns a single record and column of type long. The value is the number of records in the scope.
Example
- Count events where
status=200andresponse_time>2.
dataset=myDataset status=200 response_time>2
| count- Count the number of events.
dataset=$vt_dummy event<10
| count- Show the number of search jobs by their status and the user that created it.
$vt_jobsrequires Admin Permissions.
dataset=$vt_jobs
| summarize jobs=count() by status, user