# Ingest node - json processor - ignore missing

**URL:** <https://discuss.elastic.co/t/ingest-node-json-processor-ignore-missing/138032>\
**Category:** Elasticsearch\
**Created:** [June 29, 2018, 7:44pm UTC](https://discuss.elastic.co/t/ingest-node-json-processor-ignore-missing/138032 "2018-06-29T19:44:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tallavi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tallavi/32/73613_2.png) [@tallavi](https://discuss.elastic.co/u/tallavi)\
**Post date:** [June 29, 2018, 7:44pm UTC](https://discuss.elastic.co/t/ingest-node-json-processor-ignore-missing/138032/1 "2018-06-29T19:44:53Z")

</div>

Hi all,

I'm writing an ingest node to parse log lines as I get them from FileBeat. I have an optional json expression inside my log line. If I have this field, I want to parse the json string into an object. Also, I would like to use the on\_failure block to set the json parsing error into a "jsonError" field.

The problem is that not all log lines have this field set, and for some reason, the json processor doesn't have the "ignore\_missing" option, which is weird to me. I would think it would be a basic functionality for all processors, much like "ignore\_failures".

I can use "ignore\_failures", but then I wouldn't be able to set the 'jsonError' field on parse errors, as all log files without this field will fail on "field is missing" error.

Any idea how can I achieve this?

Thanks,

Tal

---

<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:** [July 27, 2018, 7:45pm UTC](https://discuss.elastic.co/t/ingest-node-json-processor-ignore-missing/138032/2 "2018-07-27T19:45:03Z")

</div>

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