# Backup Detection Rules and Exceptions

**URL:** <https://discuss.elastic.co/t/backup-detection-rules-and-exceptions/340639>\
**Category:** Elasticsearch\
**Tags:** detection-rules\
**Created:** [August 11, 2023, 12:48pm UTC](https://discuss.elastic.co/t/backup-detection-rules-and-exceptions/340639 "2023-08-11T12:48:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hanna/32/109117_2.png) [@hanna](https://discuss.elastic.co/u/hanna)\
**Post date:** [August 11, 2023, 12:48pm UTC](https://discuss.elastic.co/t/backup-detection-rules-and-exceptions/340639/1 "2023-08-11T12:48:29Z")

</div>

Hello everybody,

I want to backup all security detection rules and the exceptions I defined for my Cluster. From the documentation I learned how to access rules via the kibana api but there must also be an elasticsearch index containing them - I just can't find out which one.  
In which indices are the rules and exceptions stored? Can I include them in a Cluster snapshot? Or is there maybe a simpler way, that I do not know of?

Thank you for your 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:** [September 8, 2023, 12:48pm UTC](https://discuss.elastic.co/t/backup-detection-rules-and-exceptions/340639/2 "2023-09-08T12:48:31Z")

</div>

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