Functionsparse_grokVersion: NextOn this pageparse_grokParses a string according to a grok pattern.parse_grok(input:string, pattern:string) -> recordDescriptionThe parse_grok function parses a string according to a grok pattern.input: stringThe string to parse.pattern: stringThe pattern to use for parsing.Exampleslet $pattern = "%{IP:client} %{WORD} %{URIPATHPARAM:req} %{NUMBER:bytes} %{NUMBER:dur}" from { input = "Input: 55.3.244.1 GET /index.html 15824 0.043" } output = output.parse_grok(pattern){ x: "Input: 55.3.244.1 GET /index.html 15824 0.043", y: { client: 55.3.244.1, req: "/index.html", bytes: 15824, dur: 0.043 } }