Avoid print of "original data now in message field" when "JSON parse error"

Hi all,

as the title suggests, i want to get the "JSON parse error" as usual, but without the print of the message (that in my situation can be really big, MBs) on the log, to avoid the saturation of the log itself.

From your knowledge is this possible to do?

Thanks in advance for the support

The message can be avoided using the skip_invalid_json option, but that also skips tag_on_failure. However, you can use the add_tag option to add a tag that will only get added if the parse succeeds, then invert your test of it.

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