# Decode\_json\_fields and when.not, not working as expected

**URL:** <https://discuss.elastic.co/t/decode-json-fields-and-when-not-not-working-as-expected/161355>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 18, 2018, 3:18pm UTC](https://discuss.elastic.co/t/decode-json-fields-and-when-not-not-working-as-expected/161355 "2018-12-18T15:18:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kody\_Peterson](https://avatars.discourse-cdn.com/v4/letter/k/ee59a6/32.png) [@Kody\_Peterson](https://discuss.elastic.co/u/Kody_Peterson)\
**Post date:** [December 18, 2018, 3:18pm UTC](https://discuss.elastic.co/t/decode-json-fields-and-when-not-not-working-as-expected/161355/1 "2018-12-18T15:18:17Z")

</div>

I have the following simple `when.not` I am using for testing:

```auto
    processors:
      - decode_json_fields:
          when.not:
            or:
              - equals.input.type: "docker"
          fields: ["log"]
          target: "log_json"
          process_array: true
          max_depth: 20

```

Although, I am still seeing events that have and input.type equal to "docker" being processed. Is this syntax correct? I am using an `or` here as a test as I will have more than one not condition once I get this simple one working.

Thanks!

---

<div class="post-metadata">

**Author:** ![Kody\_Peterson](https://avatars.discourse-cdn.com/v4/letter/k/ee59a6/32.png) [@Kody\_Peterson](https://discuss.elastic.co/u/Kody_Peterson)\
**Post date:** [December 19, 2018, 3:16pm UTC](https://discuss.elastic.co/t/decode-json-fields-and-when-not-not-working-as-expected/161355/2 "2018-12-19T15:16:46Z")

</div>

@andrewkroh Do you maybe have some insights on this?

---

<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:** [January 16, 2019, 3:16pm UTC](https://discuss.elastic.co/t/decode-json-fields-and-when-not-not-working-as-expected/161355/3 "2019-01-16T15:16:49Z")

</div>

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