grok.asciidoc 502 B

1234567891011121314151617181920212223
  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,esql]
  10. ----
  11. include::{esql-specs}/grok.csv-spec[tag=grok]
  12. ----
  13. Returns:
  14. [%header,format=dsv,separator=|]
  15. |===
  16. include::{esql-specs}/grok.csv-spec[tag=grok-result]
  17. |===