Skip to content

Commit

Permalink
mmnormalize bugfix: if msg cannot be parsed, parser chain is stopped
Browse files Browse the repository at this point in the history
When an parser is not able to parse a message, it should indicate this
to rsyslog core, which then activates the next parser(s) inside the
configured parser chain.

Unfortunatley, mmnormalize always tells core "success", and so no
other parsers are activated.

closes #5148
  • Loading branch information
rgerhards committed Jun 16, 2023
1 parent 5d59e85 commit f2bac98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/pmnormalize/pmnormalize.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,11 @@ CODESTARTparse2
"json: %s\n", r, fjson_object_to_json_string(json));
}
fjson_object_put(json);
ABORT_FINALIZE(RS_RET_COULD_NOT_PARSE);
} else {
iRet = MsgSetPropsViaJSON_Object(pMsg, json);
}

finalize_it:
ENDparse2


Expand Down

0 comments on commit f2bac98

Please sign in to comment.