# TTL infinity

**URL:** <https://discuss.elastic.co/t/ttl-infinity/13688>\
**Category:** Elasticsearch\
**Created:** [September 19, 2013, 2:39pm UTC](https://discuss.elastic.co/t/ttl-infinity/13688 "2013-09-19T14:39:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Berry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_berry/32/1366_2.png) [@Chris\_Berry](https://discuss.elastic.co/u/Chris_Berry)\
**Post date:** [September 19, 2013, 2:39pm UTC](https://discuss.elastic.co/t/ttl-infinity/13688/1 "2013-09-19T14:39:09Z")

</div>

Greetings,

I have a templatized index schema file which allows me to set the TTL differently for each index.  
E.g.  
"\_ttl" : {  
"enabled" : true,  
"default" : "${TTL}",  
"store" : "yes"  
},

Sometimes I want to set this value to infinity.  
But the doc is unclear on what the setting is for infinity.  
Is it the common; -1 ??

BTW: I tried sending this from my email client, but it didn't appear  
So I've sent it properly from the website  
I sincerely apologize if it somehow shows up twice.

Thanks,  
-- Chris

---

<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 6, 2017, 2:15am UTC](https://discuss.elastic.co/t/ttl-infinity/13688/2 "2017-07-06T02:15:31Z")

</div>

Closed on July 6, 2017, 2:15am UTC


