Grok and curly brackets

Dear team,

I have a grok filter which needs to parse following part of line from the Haproxy logs:


Now how do I remove the brackets from beginning and end?

grok {
         match => {
            "requestResponseBegin" => [

I tried to escape it but pipeline is not compiled.


You dont have to escape the brackets in a grok pattern.
Your current grok pattern work and remove the brackets because there not concern by the regex DATA.

If you want to just remove the brackets, you can use the gsub option of the mutate filter.


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.