# Watcher - Multiple wildcards not catching

**URL:** <https://discuss.elastic.co/t/watcher-multiple-wildcards-not-catching/222082>\
**Category:** Elasticsearch\
**Created:** [March 4, 2020, 1:12pm UTC](https://discuss.elastic.co/t/watcher-multiple-wildcards-not-catching/222082 "2020-03-04T13:12:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![runtman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/runtman/32/18136_2.png) [@runtman](https://discuss.elastic.co/u/runtman)\
**Post date:** [March 4, 2020, 1:12pm UTC](https://discuss.elastic.co/t/watcher-multiple-wildcards-not-catching/222082/1 "2020-03-04T13:12:03Z")

</div>

Hello I am sure I misunderstood something here, but I have a watcher with a few `must_not` match and it appears logs are still trickling through:

```
"body": {
  "query": {
    "bool": {
      "must": [
        {
          "match": {
            "log_level": "error"
          }
        },
        {
          "match": {
            "fields.environment_type": "production"
          }
        },
        {
          "range": {
            "@timestamp": {
              "gte": "now-1m"
            }
          }
        }
      ],
      "must_not": [
        { "wildcard": { "message": "*scene_not_current*" } },
        { "wildcard": { "message": "*monotonically*" } },
        { "wildcard": { "message": "*agt_tgt_keys_session_mismatch*" } },
        { "wildcard": { "message": "*Error trying to authenticate DU*" } },
        { "wildcard": { "message": "*unknown error authenticating DU*" } }
      ]
    }
  }
}

```

}  
}  
},

Logs containing `unknown error authenticating DU` are still alerting.

`message": ["2020-03-04 12:43:33.990 [error] <0.30188.298>@vsp_du_auth:authenticate_agent:66 unknown error authenticating DU: req_timedout","@vsp_du_auth:authenticate_agent:66 unknown error authenticating DU: req_timedout"`

Am I missing something obvious here?

---

<div class="post-metadata">

**Author:** ![runtman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/runtman/32/18136_2.png) [@runtman](https://discuss.elastic.co/u/runtman)\
**Post date:** [March 4, 2020, 3:25pm UTC](https://discuss.elastic.co/t/watcher-multiple-wildcards-not-catching/222082/2 "2020-03-04T15:25:08Z")

</div>

I needed to use `message.keyword` and it's now resolved.

---

<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, 2020, 3:25pm UTC](https://discuss.elastic.co/t/watcher-multiple-wildcards-not-catching/222082/3 "2020-04-01T15:25:15Z")

</div>

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