elasticsearch/docs/reference/esql/functions/examples/categorize.asciidoc

15 lines
437 B
Plaintext

// 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.
[source.merge.styled,esql]
----
include::{esql-specs}/docs.csv-spec[tag=docsCategorize]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/docs.csv-spec[tag=docsCategorize-result]
|===