Skip to main content
Sumo Logic

1.5 You want to count hits by page

Problem

You know how to extract the requested page URL, but what you want is to count hits.

Solution

Use the count operator:

_sourceCategory=apache 
| parse "GET * " as url 
| count by url

Discussion

The count operator aggregates the extracted URLs and displays them once each.