# Custom Alert Rules for Sythetics

**URL:** <https://discuss.elastic.co/t/custom-alert-rules-for-sythetics/359728>\
**Category:** Synthetics\
**Created:** [May 17, 2024, 5:09pm UTC](https://discuss.elastic.co/t/custom-alert-rules-for-sythetics/359728 "2024-05-17T17:09:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichiCoder](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richicoder/32/103790_2.png) [@RichiCoder](https://discuss.elastic.co/u/RichiCoder)\
**Post date:** [May 17, 2024, 5:09pm UTC](https://discuss.elastic.co/t/custom-alert-rules-for-sythetics/359728/1 "2024-05-17T17:09:42Z")

</div>

We've been using the new Synthetics capability in Elastic Observability to much success, however we've run into a distinct issue that it's not clear how to send specific synthetic alerts to specific channels.

For Uptime monitors, there's the "Uptime monitor status" rule option, however there's no equivalent for synthetics. This is greatly limiting our ability to expand use of this feature as it's forcing us to funnel alarms.

---

<div class="post-metadata">

**Author:** ![DougR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dougr/32/48095_2.png) [@DougR](https://discuss.elastic.co/u/DougR)\
**Post date:** [May 20, 2024, 6:22pm UTC](https://discuss.elastic.co/t/custom-alert-rules-for-sythetics/359728/2 "2024-05-20T18:22:32Z")

</div>

I asked basically this same question a few days ago, you can see the answer I was given [here](https://discuss.elastic.co/t/elastic-synthetics-alerts-in-the-same-workspace-to-different-teams/359477/2).

I am successfully sending alerts from the the same workspace to different endpoints based on workspace name and tags as follows:

```auto
data_stream.namespace:"my_namespace" AND tags:("my_app" AND "my_env")

```

The one issue I'm having is that the uptime rules don't appear to respect the `alert.status.enabled` switch in my tests. I'm planning on resolving this in the short term by ignoring anything with a `disable_alerts` tag set, but I'm hoping there's a better solution.

---

<div class="post-metadata">

**Author:** ![RichiCoder](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richicoder/32/103790_2.png) [@RichiCoder](https://discuss.elastic.co/u/RichiCoder)\
**Post date:** [May 20, 2024, 6:43pm UTC](https://discuss.elastic.co/t/custom-alert-rules-for-sythetics/359728/3 "2024-05-20T18:43:08Z")

</div>

Awesome, thank you! Hopefully there's a good answer to the disabled alert question!

---

<div class="post-metadata">

**Author:** ![DougR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dougr/32/48095_2.png) [@DougR](https://discuss.elastic.co/u/DougR)\
**Post date:** [May 20, 2024, 6:48pm UTC](https://discuss.elastic.co/t/custom-alert-rules-for-sythetics/359728/4 "2024-05-20T18:48:20Z")

</div>

The other thing I wonder...

I can't create a new Synthetics Rule through the UI, but I can GET a synthetics rule through the API. I'm curious whether a synthetics rule can be CREATED through the API. I'll have to ask that as a follow-up.

---

<div class="post-metadata">

**Author:** ![jkambic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkambic/32/53306_2.png) [@jkambic](https://discuss.elastic.co/u/jkambic)\
**Post date:** [May 23, 2024, 2:08pm UTC](https://discuss.elastic.co/t/custom-alert-rules-for-sythetics/359728/5 "2024-05-23T14:08:41Z")

</div>

Hi @RichiCoder and @DougR - I have [responded](https://discuss.elastic.co/t/elastic-synthetics-alerts-in-the-same-workspace-to-different-teams/359477/4) to @DougR's other topic on this same question.

If anything's unclear feel free to open this thread back up or ask on that thread.
