# Watcher "execution not needed" message? v5.2

**URL:** <https://discuss.elastic.co/t/watcher-execution-not-needed-message-v5-2/79504>\
**Category:** Elasticsearch\
**Created:** [March 21, 2017, 9:15pm UTC](https://discuss.elastic.co/t/watcher-execution-not-needed-message-v5-2/79504 "2017-03-21T21:15:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcjonkers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcjonkers/32/16570_2.png) [@marcjonkers](https://discuss.elastic.co/u/marcjonkers)\
**Post date:** [March 21, 2017, 9:15pm UTC](https://discuss.elastic.co/t/watcher-execution-not-needed-message-v5-2/79504/1 "2017-03-21T21:15:10Z")

</div>

Hi, I use this code, when I remove the line: "filter": { "range" : { "@timestamp": { "from" : "now-5m"}}}: it works but I get a lot of hits. When I add this line I get the message "execution not needed", why is that?

{  
"trigger" : {  
"schedule" : {  
"interval" : "1m" }  
},  
"input" : {  
"search" : {  
"request" : {  
"indices" : ["\<logstash-{now/d}\>"],  
"body" : {  
"query" : {  
"bool": {  
"must": { "match" : { "message": "BGP" }},  
"filter": { "range" : { "@timestamp": { "from" : "now-5m"}}}  
}  
}  
}  
}  
}  
},  
"condition" : {  
"compare" : { "ctx.payload.hits.total" : { "gt" : 0 }}  
},  
"actions" : {  
"send\_email" : {  
"throttle\_period" : "15m",  
"email" : {  
"account" : "work",  
"to" : "xxxxx@xxx.xl",  
"subject" : "[KIBANA] {{ctx.payload.hits.total}} BGP flaps",  
"body" : "BGP flaps",  
"attach\_data" : true  
}  
}  
}  
}

---

<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 18, 2017, 9:15pm UTC](https://discuss.elastic.co/t/watcher-execution-not-needed-message-v5-2/79504/2 "2017-04-18T21:15:17Z")

</div>

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