# Rules folder location

**URL:** <https://discuss.elastic.co/t/rules-folder-location/288010>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [October 29, 2021, 2:16pm UTC](https://discuss.elastic.co/t/rules-folder-location/288010 "2021-10-29T14:16:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dalador](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@Dalador](https://discuss.elastic.co/u/Dalador)\
**Post date:** [October 29, 2021, 2:16pm UTC](https://discuss.elastic.co/t/rules-folder-location/288010/1 "2021-10-29T14:16:19Z")

</div>

Hello  
I am using Docker ELK and I keep Elasticsearch data permanently by using the following on .yml

volumes:

- /path/to/storage:/usr/share/Elasticsearch/data

But how can i save my EQL, KQL rules in security application?  
Where can i find this folder?

Do I miss something?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![cheiligers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cheiligers/32/73114_2.png) [@cheiligers](https://discuss.elastic.co/u/cheiligers)\
**Post date:** [October 30, 2021, 12:00am UTC](https://discuss.elastic.co/t/rules-folder-location/288010/2 "2021-10-30T00:00:41Z")

</div>

Hi @Dalador According to the docs, if you [export your rules](https://www.elastic.co/guide/en/security/7.16/rules-api-export.html#rules-api-export), you can specify a file to store them to in `.ndjson` format. Once exported, you'll be able to import them again at a later stage.  
I'm not sure what the default folder is for Docker or if there is one but you could also configure a repository to store cluster snapshots in. [Snapshots](https://www.elastic.co/guide/en/kibana/current/snapshot-repositories.html#snapshot-repositories) are a convenient way to backup your data in the event that your cluster goes down (ether intentionally or otherwise).  
I hope that helps a bit.

---

<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:** [November 27, 2021, 12:01am UTC](https://discuss.elastic.co/t/rules-folder-location/288010/3 "2021-11-27T00:01:11Z")

</div>

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