grok.asciidoc 533 B

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