grok.asciidoc 522 B

1234567891011121314151617181920
  1. [[esql-grok]]
  2. === `GROK`
  3. `GROK` enables you to extract structured data out of a string. `GROK` matches
  4. the string against patterns, based on regular expressions, and extracts the
  5. specified patterns as columns.
  6. Refer to the <<grok-processor,grok processor documentation>> for the syntax for
  7. of grok patterns.
  8. For example:
  9. [source.merge.styled,esql]
  10. ----
  11. include::{esql-specs}/grok.csv-spec[tag=grok]
  12. ----
  13. [%header.monospaced.styled,format=dsv,separator=|]
  14. |===
  15. include::{esql-specs}/grok.csv-spec[tag=grok-result]
  16. |===