# Logstash json filter fail to send to elasticearch when parse json error

**URL:** <https://discuss.elastic.co/t/logstash-json-filter-fail-to-send-to-elasticearch-when-parse-json-error/266190>\
**Category:** Logstash\
**Created:** [March 4, 2021, 7:48am UTC](https://discuss.elastic.co/t/logstash-json-filter-fail-to-send-to-elasticearch-when-parse-json-error/266190 "2021-03-04T07:48:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stwang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stwang/32/115044_2.png) [@stwang](https://discuss.elastic.co/u/stwang)\
**Post date:** [March 4, 2021, 7:48am UTC](https://discuss.elastic.co/t/logstash-json-filter-fail-to-send-to-elasticearch-when-parse-json-error/266190/1 "2021-03-04T07:48:47Z")

</div>

Hi there,

I have a logstash filter to pass my log, my log contain json and non-json log, I want both send to elastic search no matter json parse success or failed.

I found from logstash, for the failed parse log, it shows:  
LogStash::Json::ParserError: Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value

but from elastic search, I can't found those log which parse failed. only can see the success one.

I didn't use any drop, doesn't any one know what could be wrong?

---

<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:** [April 1, 2021, 7:49am UTC](https://discuss.elastic.co/t/logstash-json-filter-fail-to-send-to-elasticearch-when-parse-json-error/266190/2 "2021-04-01T07:49:40Z")

</div>

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