Silence json parse failures from Logstash logs?

Hi! Simple question: is there any way to silence json parse failure events from showing up in logstash's logs? I'm fine with the default behavior of passing it through as plain text and adding the _jsonparsefailure tag, I just don't want to see it in /var/log/logstash/logstash.log, because I periodically look through it to make sure everything is functioning correctly.

I actually think I have a way of suppressing the spurious messages from my application, but I'd like to know for future reference. I'm on Logstash 2.4 since my servers are still running Ubuntu 14.04 LTS, which doesn't have JDK8 in the default repositories (hoping to upgrade in the not too distant future, but that's a bigger project).


If you're using the json filter (rather than the codec) you can set skip_on_invalid_json to suppress warnings and the _jsonparsefailure tag.

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