# Condition with decode\_json\_fields processor

**URL:** https://discuss.elastic.co/t/condition-with-decode-json-fields-processor/115093
**Category:** Beats
**Tags:** filebeat
**Created:** [January 11, 2018, 1:16pm UTC](https://discuss.elastic.co/t/condition-with-decode-json-fields-processor/115093 "2018-01-11T13:16:53Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![jochenchrist](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@jochenchrist](https://discuss.elastic.co/u/jochenchrist)
#### Post date: [January 11, 2018, 4:22pm UTC](https://discuss.elastic.co/t/condition-with-decode-json-fields-processor/115093/5 "2018-01-11T16:22:17Z")

</div>

Well, the decode\_json\_fields processor actually works great for the vaild JSON log entries (the last 2 in the example above).

My concern are the error messages when a Non-JSON log entry is processed.

The question is, whether decode\_json\_fields respects the _when condition_, at all?

---

_[View the full topic](https://discuss.elastic.co/t/condition-with-decode-json-fields-processor/115093)._
