Watcher input search failing due to exceeded dynamic compilation

I'm getting dynamic execution circuit breaking error for many watchers in our environment saying that the input search query failed to compile.

What is the reason for the same. How can we avoid such errors at all?

Error:

Watcher:

"input": {
    "search": {
      "request": {
        "search_type": "query_then_fetch",
        "indices": [
          "heartbeat-*"
        ],
        "rest_total_hits_as_int": true,
        "body": {
          "query": {
            "bool": {
              "must": [
                {
                  "range": {
                    "@timestamp": {
                      "gte": "now-5m"
                    }
                  }
                },
                {
                  "term": {
                    "monitor.name": "*******"
                  }
                },
                {
                  "term": {
                    "monitor.status": "down"
                  }
                }
              ]
            }
          },
          "size": 100
        }
      }
    }
  }

Please don't post pictures of text or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them :slight_smile:

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