# Silence json parse failures from Logstash logs?

**URL:** <https://discuss.elastic.co/t/silence-json-parse-failures-from-logstash-logs/82363>\
**Category:** Logstash\
**Created:** [April 13, 2017, 10:24pm UTC](https://discuss.elastic.co/t/silence-json-parse-failures-from-logstash-logs/82363 "2017-04-13T22:24:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ibrahim\_Awwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ibrahim_awwal/32/16526_2.png) [@Ibrahim\_Awwal](https://discuss.elastic.co/u/Ibrahim_Awwal)\
**Post date:** [April 13, 2017, 10:24pm UTC](https://discuss.elastic.co/t/silence-json-parse-failures-from-logstash-logs/82363/1 "2017-04-13T22:24:57Z")

</div>

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).

Thanks!

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 14, 2017, 8:18am UTC](https://discuss.elastic.co/t/silence-json-parse-failures-from-logstash-logs/82363/2 "2017-04-14T08:18:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 12, 2017, 8:21am UTC](https://discuss.elastic.co/t/silence-json-parse-failures-from-logstash-logs/82363/3 "2017-05-12T08:21:28Z")

</div>

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