count - Count the number of rows in a set.
The count
operator returns a single row, that represents a count of the results.
Syntax
Example - Counting the number of HTTP Requests
If we have a log document that represents HTTP requests, we can use a simple count to tally them up:
This will return a single numeric value. We can also alias this field for better readability:
Now, our document that we get back will look like this:
Theme
Light