| 123456789101112131415161718192021 | [discrete][[esql-grok]]=== `GROK``GROK` enables you to extract structured data out of a string. `GROK` matchesthe string against patterns, based on regular expressions, and extracts thespecified patterns as columns.Refer to the <<grok-processor,grok processor documentation>> for the syntax forof grok patterns.For example:[source.merge.styled,esql]----include::{esql-specs}/grok.csv-spec[tag=grok]----[%header.monospaced.styled,format=dsv,separator=|]|===include::{esql-specs}/grok.csv-spec[tag=grok-result]|===
 |