% This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.
Example
This example categorizes server logs messages into categories and aggregates their counts.
FROM sample_data
| STATS count=COUNT() BY category=CATEGORIZE(message)
count:long | category:keyword |
---|---|
3 | .*?Connected.+?to.*? |
3 | .*?Connection.+?error.*? |
1 | .*?Disconnected.*? |