# Synthetics alerts and rules error

**URL:** <https://discuss.elastic.co/t/synthetics-alerts-and-rules-error/350108>\
**Category:** Synthetics\
**Created:** [December 29, 2023, 2:57am UTC](https://discuss.elastic.co/t/synthetics-alerts-and-rules-error/350108 "2023-12-29T02:57:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jevonsnotes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jevonsnotes/32/130317_2.png) [@jevonsnotes](https://discuss.elastic.co/u/jevonsnotes)\
**Post date:** [December 29, 2023, 2:57am UTC](https://discuss.elastic.co/t/synthetics-alerts-and-rules-error/350108/1 "2023-12-29T02:57:47Z")

</div>

it occur an error when i click this

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/d/0d2e215bcb2dc97b593230e2f19a9d2bd531aafc.png)

```auto
Error

Error: Cannot read properties of undefined (reading 'ui')
    at p (http://192.168.10.20:5601/68312/bundles/plugin/triggersActionsUi/1.0.0/triggersActionsUi.chunk.12.js:3:8968)
    at ua (http://192.168.10.20:5601/68312/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:59279)
    at ec (http://192.168.10.20:5601/68312/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:115190)
    at Pc (http://192.168.10.20:5601/68312/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:99978)
    at Nc (http://192.168.10.20:5601/68312/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:99800)
    at Dc (http://192.168.10.20:5601/68312/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:99633)
    at wc (http://192.168.10.20:5601/68312/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:96466)
    at http://192.168.10.20:5601/68312/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:45201
    at t.unstable_runWithPriority (http://192.168.10.20:5601/68312/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:433:3768)
    at Vo (http://192.168.10.20:5601/68312/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:44978)

```

---

<div class="post-metadata">

**Author:** ![jevonsnotes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jevonsnotes/32/130317_2.png) [@jevonsnotes](https://discuss.elastic.co/u/jevonsnotes)\
**Post date:** [January 3, 2024, 7:43am UTC](https://discuss.elastic.co/t/synthetics-alerts-and-rules-error/350108/2 "2024-01-03T07:43:51Z")

</div>

can any one helps?

---

<div class="post-metadata">

**Author:** ![abdulz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abdulz/32/97601_2.png) [@abdulz](https://discuss.elastic.co/u/abdulz)\
**Post date:** [January 3, 2024, 8:05pm UTC](https://discuss.elastic.co/t/synthetics-alerts-and-rules-error/350108/3 "2024-01-03T20:05:47Z")

</div>

Hi @jevonsnotes ,

This is a bug on our size. Alerts in Synthetics are not yet as flexible as in [Uptime](https://www.elastic.co/guide/en/observability/current/uptime-intro.html) or other places in Kibana.

If you need more flexibility with alerts, there's a workaround which allows you to utilize Uptime alerts to work with Synthetics. Hopefully it works for your use case.

> ### Workaround
> 
> 1. Go in Kibana / Stack Management / Advanced Settings and then enable `observability:enableLegacyUptimeApp` (this step is necessary only if you do not have old Heartbeat alerts [[Synthetics] Hide Uptime by default if no data · Issue #158731 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/158731). If you already can see Observability -\> Uptime app, this step is not necessary.)
> 2. Go in Kibana / Observability / Uptime / Settings and then add `synthetics-*` to the `Heartbeat indices`. (for a typical Kibana setup the indices value will look like `heartbeat-*,synthetics-*`)
> 3. You should now be able to use the Uptime alerts on Synthetics monitors. Note that you'll also start seeing Synthetic monitors in Uptime.
> 4. Goto Stack Management / Rules / Create rule and select **Uptime monitor status** as rule type (or Uptime TLS if desired).
> 
> Note:
> 
> - Uptime is not space aware (so it will be able to see all the Synthetics monitors on all spaces)
> - Uptime has several limitations with Synthetics monitors, so please be aware this should be considered as a workaround which can break at any time in the future

---

<div class="post-metadata">

**Author:** ![jevonsnotes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jevonsnotes/32/130317_2.png) [@jevonsnotes](https://discuss.elastic.co/u/jevonsnotes)\
**Post date:** [January 8, 2024, 8:04am UTC](https://discuss.elastic.co/t/synthetics-alerts-and-rules-error/350108/4 "2024-01-08T08:04:05Z")

</div>

okey，thks for help

---

<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 5, 2024, 8:05am UTC](https://discuss.elastic.co/t/synthetics-alerts-and-rules-error/350108/5 "2024-02-05T08:05:02Z")

</div>

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