# Configure watcher's history indexes to be saved

**URL:** <https://discuss.elastic.co/t/configure-watchers-history-indexes-to-be-saved/85262>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [May 10, 2017, 2:31pm UTC](https://discuss.elastic.co/t/configure-watchers-history-indexes-to-be-saved/85262 "2017-05-10T14:31:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pabloc](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@pabloc](https://discuss.elastic.co/u/pabloc)\
**Post date:** [May 10, 2017, 2:31pm UTC](https://discuss.elastic.co/t/configure-watchers-history-indexes-to-be-saved/85262/1 "2017-05-10T14:31:26Z")

</div>

Hello,  
We're using ES 2.4.1 and running watcher.  
Is there a way configure how many days of the history indexes are kept?  
Thanks.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [May 15, 2017, 9:11pm UTC](https://discuss.elastic.co/t/configure-watchers-history-indexes-to-be-saved/85262/2 "2017-05-15T21:11:30Z")

</div>

Hey,

right now there is no way to configure the format of the index name, and those indices are kept forever, so you can use something like [curator](https://github.com/elastic/curator) to take care of index deletion over time.

Hope this helps!

--Alex

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [May 16, 2017, 5:32pm UTC](https://discuss.elastic.co/t/configure-watchers-history-indexes-to-be-saved/85262/3 "2017-05-16T17:32:36Z")

</div>

The official documentation for Curator is [here](https://www.elastic.co/guide/en/elasticsearch/client/curator/5.0/index.html).

---

<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:** [June 13, 2017, 5:33pm UTC](https://discuss.elastic.co/t/configure-watchers-history-indexes-to-be-saved/85262/4 "2017-06-13T17:33:00Z")

</div>

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