# When Rule is disabled, automatically disable alerts?

**URL:** <https://discuss.elastic.co/t/when-rule-is-disabled-automatically-disable-alerts/366454>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [September 12, 2024, 7:55am UTC](https://discuss.elastic.co/t/when-rule-is-disabled-automatically-disable-alerts/366454 "2024-09-12T07:55:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fiza](https://avatars.discourse-cdn.com/v4/letter/f/c4cdca/32.png) [@Fiza](https://discuss.elastic.co/u/Fiza)\
**Post date:** [September 12, 2024, 7:55am UTC](https://discuss.elastic.co/t/when-rule-is-disabled-automatically-disable-alerts/366454/1 "2024-09-12T07:55:55Z")

</div>

Hello Elastic Team,

I have multiple rules running in Elasticsearch instance. Out of which I stopped one rule which had "Active" alerts. Those alerts are still in active state.

I am trying to find a way that when we change the rules to disable/delete the alerts should automatically update to untracked status.  
Is this possible or some other way around ?

Note :- I am using elastic v 8.14.0

Thanks,  
Fiza

---

<div class="post-metadata">

**Author:** ![Alex\_Salgado-Elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_salgado-elastic/32/103081_2.png) [@Alex\_Salgado-Elastic](https://discuss.elastic.co/u/Alex_Salgado-Elastic)\
**Post date:** [September 12, 2024, 10:15am UTC](https://discuss.elastic.co/t/when-rule-is-disabled-automatically-disable-alerts/366454/2 "2024-09-12T10:15:43Z")

</div>

how many alerts do you have do disable?

---

<div class="post-metadata">

**Author:** ![Fiza](https://avatars.discourse-cdn.com/v4/letter/f/c4cdca/32.png) [@Fiza](https://discuss.elastic.co/u/Fiza)\
**Post date:** [September 12, 2024, 10:48am UTC](https://discuss.elastic.co/t/when-rule-is-disabled-automatically-disable-alerts/366454/3 "2024-09-12T10:48:42Z")

</div>

Hi @Alex_Salgado-Elastic ,

Right now, it's around 20 alerts. But this can not always be the scenario.

Right now, it is in testing phase, the number may vary as per the environment monitored and also the conditions met. Instead of manually turning them to untracked, I want it to be automatic.

Thanks,  
Fiza
