# Exporting detection rules and its exceptions

**URL:** <https://discuss.elastic.co/t/exporting-detection-rules-and-its-exceptions/278753>\
**Category:** Elasticsearch\
**Created:** [July 15, 2021, 8:43am UTC](https://discuss.elastic.co/t/exporting-detection-rules-and-its-exceptions/278753 "2021-07-15T08:43:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![realtech2338](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@realtech2338](https://discuss.elastic.co/u/realtech2338)\
**Post date:** [July 15, 2021, 8:43am UTC](https://discuss.elastic.co/t/exporting-detection-rules-and-its-exceptions/278753/1 "2021-07-15T08:43:16Z")

</div>

how to export all detection rules along with its query into csv format from elasticsearch portal?  
how to export exceptions under each detection rule into csv format from elasticsearch portal?

---

<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:** [August 12, 2021, 8:43am UTC](https://discuss.elastic.co/t/exporting-detection-rules-and-its-exceptions/278753/2 "2021-08-12T08:43:51Z")

</div>

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