# Advanced Threshold Watch with webhook

**URL:** https://discuss.elastic.co/t/advanced-threshold-watch-with-webhook/152070
**Category:** Elasticsearch
**Tags:** elastic-stack-alerting
**Created:** [October 11, 2018, 2:17pm UTC](https://discuss.elastic.co/t/advanced-threshold-watch-with-webhook/152070 "2018-10-11T14:17:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sasha](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@sasha](https://discuss.elastic.co/u/sasha)
#### Post date: [October 11, 2018, 2:17pm UTC](https://discuss.elastic.co/t/advanced-threshold-watch-with-webhook/152070/1 "2018-10-11T14:17:47Z")

</div>

I want to make just a simple threshold watch that alerts if a certain field is greater than a certain value. But I want to send the alert via a webhook so the basic threshold watch is not an option. How would I set up the query/condition in an advanced watch to work as a simple threshold watch?

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [October 15, 2018, 7:17am UTC](https://discuss.elastic.co/t/advanced-threshold-watch-with-webhook/152070/2 "2018-10-15T07:17:37Z")

</div>

Hey,

if the watcher UI is not an option, you can write the watch manually using the console/dev-tools. You could create a threshold watch that is doing what you need and then use the [Put Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/watcher-api-put-watch.html) to iterate on that using dev-tools. If you need some more inspiration check out the [examples repository](https://github.com/elastic/examples/tree/master/Alerting), that contains a fair share of watches.

Hope this helps!

--Alex

---

<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: [November 12, 2018, 7:17am UTC](https://discuss.elastic.co/t/advanced-threshold-watch-with-webhook/152070/3 "2018-11-12T07:17:37Z")

</div>

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