Hi!
I have some troubles with using grok patterns in Graylog pipelines.
I have a simple test rule to parse message field:
rule "pipeline"
when
true
then
set_field("pipeline","true");
let mess = to_string($message.message);
let patt = grok(pattern:"%{GREEDYDATA:message2}",value: mess,only_named_captures: true);
set_fields(patt);
end
It works correctly in Simulation, but when I including this rule into stage all messages are stopping to receive in Graylog.
When I just commented string set_fields(patt);, messages are going on correctly receiving.
It repeats with any trying to post grok results in field: set_field(“message2”,patt[“message2”]); etc.
But set_field(“pipeline”,“true”); - setting additional field with hardcoded params is working correctly.
Where is the problem?
Graylog Enterprise 4.2 (docker)
Helpful Posting Tips: Tips for Posting Questions that Get Answers [Hold down CTRL and link on link to open tips documents in a separate tab]