# Same action for every SIEM detection rule

**URL:** <https://discuss.elastic.co/t/same-action-for-every-siem-detection-rule/297056>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [February 12, 2022, 8:37pm UTC](https://discuss.elastic.co/t/same-action-for-every-siem-detection-rule/297056 "2022-02-12T20:37:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![maof97](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maof97/32/101433_2.png) [@maof97](https://discuss.elastic.co/u/maof97)\
**Post date:** [February 12, 2022, 8:37pm UTC](https://discuss.elastic.co/t/same-action-for-every-siem-detection-rule/297056/1 "2022-02-12T20:37:15Z")

</div>

Hello, I am testing the Gold license and I thought it would be a good idea to send an E-Mail for every alert detected by the SIEM ("Alert" tab).

I generally found out how to do that. I created a connector i.e. Mail connector and tested it.  
Then I go to the rule and edit the action for the rule to use the connector. Then I edit the body, title etc. so it uses data from the rule.

Now I have 660 Rules that would need to be update. Is there a way to bulk-update the action or do I really have to manually edit each rule action?!

Also I would like to know if I can use the {{}} references to add information from the alerted event itself and not only from the static rule properties. E.g. "The alerted process was {{process.name.text}}".

---

<div class="post-metadata">

**Author:** ![sholzhauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sholzhauer/32/110282_2.png) [@sholzhauer](https://discuss.elastic.co/u/sholzhauer)\
**Post date:** [February 14, 2022, 8:57am UTC](https://discuss.elastic.co/t/same-action-for-every-siem-detection-rule/297056/2 "2022-02-14T08:57:45Z")

</div>

Hi, no there is no way to bulk update rules in the UI.

Best option you have at this moment is creating a script which will retrieve all detections and update each rule through the API.

---

<div class="post-metadata">

**Author:** ![maof97](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maof97/32/101433_2.png) [@maof97](https://discuss.elastic.co/u/maof97)\
**Post date:** [February 15, 2022, 7:08pm UTC](https://discuss.elastic.co/t/same-action-for-every-siem-detection-rule/297056/3 "2022-02-15T19:08:44Z")

</div>

That is sad

---

<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:** [March 15, 2022, 7:09pm UTC](https://discuss.elastic.co/t/same-action-for-every-siem-detection-rule/297056/4 "2022-03-15T19:09:40Z")

</div>

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