# Watcher Alert Conditions

**URL:** <https://discuss.elastic.co/t/watcher-alert-conditions/163246>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [January 7, 2019, 4:58pm UTC](https://discuss.elastic.co/t/watcher-alert-conditions/163246 "2019-01-07T16:58:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel\_Leite](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/miguel_leite/32/41988_2.png) [@Miguel\_Leite](https://discuss.elastic.co/u/Miguel_Leite)\
**Post date:** [January 7, 2019, 4:58pm UTC](https://discuss.elastic.co/t/watcher-alert-conditions/163246/1 "2019-01-07T16:58:20Z")

</div>

Hey guys,

I was wondering if it's possible to run a watcher alert based on conditions where tags are used. For example, I would like to alert by slack when:

- count of tags "root\_log\_error" OR "sys\_mon\_error" greater than 5 over the last 15 min;

I don't think I can do this with the simple watcher. Maybe with the Advanced Watcher?

Thanks!!  
Any help is appreciated!!

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [January 9, 2019, 1:41am UTC](https://discuss.elastic.co/t/watcher-alert-conditions/163246/2 "2019-01-09T01:41:42Z")

</div>

It is not possible with the simple watcher since there is not way to include a filter in the watch.

You should be able to do this with the advanced watcher since you can set `input.search.request.body` and specify the query there

---

<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:** [February 6, 2019, 1:41am UTC](https://discuss.elastic.co/t/watcher-alert-conditions/163246/3 "2019-02-06T01:41:43Z")

</div>

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