# Index-level TTL -- how do we track this feature request?

**URL:** <https://discuss.elastic.co/t/index-level-ttl-how-do-we-track-this-feature-request/37775>\
**Category:** Elasticsearch\
**Created:** [December 22, 2015, 5:02pm UTC](https://discuss.elastic.co/t/index-level-ttl-how-do-we-track-this-feature-request/37775 "2015-12-22T17:02:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![casieowen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casieowen/32/8734_2.png) [@casieowen](https://discuss.elastic.co/u/casieowen)\
**Post date:** [December 22, 2015, 5:02pm UTC](https://discuss.elastic.co/t/index-level-ttl-how-do-we-track-this-feature-request/37775/1 "2015-12-22T17:02:08Z")

</div>

Hi --

I understand there is a feature request for index-level TTL. My question is, how do I track that feature request?

Thanks,  
Casie

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 22, 2015, 8:15pm UTC](https://discuss.elastic.co/t/index-level-ttl-how-do-we-track-this-feature-request/37775/2 "2015-12-22T20:15:43Z")

</div>

It'd be in here - [https://github.com/elastic/elasticsearch/issues/](https://github.com/elastic/elasticsearch/issues/)

If you find it, please link it here so others can benefit 🙂 (I couldn't find it!)

---

<div class="post-metadata">

**Author:** ![casieowen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casieowen/32/8734_2.png) [@casieowen](https://discuss.elastic.co/u/casieowen)\
**Post date:** [December 29, 2015, 7:03pm UTC](https://discuss.elastic.co/t/index-level-ttl-how-do-we-track-this-feature-request/37775/3 "2015-12-29T19:03:47Z")

</div>

> [@warkolm](#):
>
> It'd be in here - [Issues · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/issues/)
> 
> If you find it, please link it here so others can benefit 😄 (I couldn't find it!)

To get the info, I opened a new feature in github. Then got this reply: "The existing feature request is at #2114. It was closed because curator can already do this and it's fairly easy to do so (delete + index selection). I'm going to close this issue as it seems like it's an exact duplicate of #2114. If the existing curator functionality doesn't fill your needs, feel free to +1 and/or comment in there and we can always consider reopening it." So, I added a "+1. Please! Yes, curator can do it, but it's way more efficient to set a ttl on the index at time of creation!". Anyone else can do the same here: [Allow setting ttl at index level · Issue #2114 · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/issues/2114).

---

<div class="post-metadata">

**Author:** ![casieowen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casieowen/32/8734_2.png) [@casieowen](https://discuss.elastic.co/u/casieowen)\
**Post date:** [February 3, 2016, 7:46pm UTC](https://discuss.elastic.co/t/index-level-ttl-how-do-we-track-this-feature-request/37775/4 "2016-02-03T19:46:33Z")

</div>

Hi Mark,

We developed a c# console app to manage our index retention until a TTL at the index level is an option. At a high level: The program accepts index type values and a date retention value. It searches through index names for any that match the pattern, then checks the date in the index name to see if it is older than the date retention value, and if so, deletes it. Has some safety nets built in, detailed logging, etc.

Some other folks in our company heard about it and asked for it because they had been looking for "exactly that", so I thought maybe others outside our company could benefit. Is this something that should be considered for addition to the elasticsearch github? If so, what's the process?

Thanks,  
Casie

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 3, 2016, 10:04pm UTC](https://discuss.elastic.co/t/index-level-ttl-how-do-we-track-this-feature-request/37775/5 "2016-02-03T22:04:20Z")

</div>

Curator does exactly that though, so I am not sure why you rebuilt it.

---

<div class="post-metadata">

**Author:** ![casieowen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casieowen/32/8734_2.png) [@casieowen](https://discuss.elastic.co/u/casieowen)\
**Post date:** [February 3, 2016, 10:20pm UTC](https://discuss.elastic.co/t/index-level-ttl-how-do-we-track-this-feature-request/37775/6 "2016-02-03T22:20:20Z")

</div>

We tried to use curator for our purposes, but it wouldn't run as a scheduled task in a windows environment (running it manually worked), so we went another way. I tried to get help ([Different results when running curator command at command prompt vs as a .bat file in windows](https://discuss.elastic.co/t/different-results-when-running-curator-command-at-command-prompt-vs-as-a-bat-file-in-windows/31804/3)) but it didn't go well.

Also, for the prefix option, does curator allow you to target multiple prefixes in the same run?

---

<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:** [February 3, 2016, 10:33pm UTC](https://discuss.elastic.co/t/index-level-ttl-how-do-we-track-this-feature-request/37775/7 "2016-02-03T22:33:12Z")

</div>

> [@casieowen](#):
>
> Also, for the prefix option, does curator allow you to target multiple prefixes in the same run?

You could do this, but it would take a custom regular expression, via the `--regex` flag.

---

<div class="post-metadata">

**Author:** ![casieowen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casieowen/32/8734_2.png) [@casieowen](https://discuss.elastic.co/u/casieowen)\
**Post date:** [February 3, 2016, 11:00pm UTC](https://discuss.elastic.co/t/index-level-ttl-how-do-we-track-this-feature-request/37775/8 "2016-02-03T23:00:57Z")

</div>

Do you know of people being able to have curator run in an automated fashion in windows environments? As mentioned in the thread mentioned above, we got different results running it manually vs as a .bat (couldn't get the .bat to work). I submitted details and logs but didn't get a reply.

---

<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:** [February 3, 2016, 11:29pm UTC](https://discuss.elastic.co/t/index-level-ttl-how-do-we-track-this-feature-request/37775/9 "2016-02-03T23:29:23Z")

</div>

I do not know. Is there a Windows equivalent of the `cron` service?

EDIT: It appears there are several possibilities: [http://stackoverflow.com/a/132975](http://stackoverflow.com/a/132975)

---

<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:** [July 5, 2017, 11:19pm UTC](https://discuss.elastic.co/t/index-level-ttl-how-do-we-track-this-feature-request/37775/10 "2017-07-05T23:19:06Z")

</div>


