# Time To Live

**URL:** <https://discuss.elastic.co/t/time-to-live/59117>\
**Category:** Elasticsearch\
**Created:** [August 28, 2016, 2:30pm UTC](https://discuss.elastic.co/t/time-to-live/59117 "2016-08-28T14:30:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [August 28, 2016, 2:30pm UTC](https://discuss.elastic.co/t/time-to-live/59117/1 "2016-08-28T14:30:41Z")

</div>

Hey Guys got a quick question about time to live

I was going to great a Nagios index with a uniq id of - but then I ran across \_TTL

[https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-ttl-field.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-ttl-field.html)

Before I start playing with this field, can someone give me any pointers about it? Or the future of this field? Beyond what is in the documentation.

In the document it says the \_ttl is deprecated in 2.0.0Beta but there seems to be no mention on what the new field will be called and we are now .3 versions later. I would hate to build stuff around this when it goes By by/Changes.

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [August 28, 2016, 3:10pm UTC](https://discuss.elastic.co/t/time-to-live/59117/2 "2016-08-28T15:10:01Z")

</div>

> [@eperry](#):
>
> Or the future of this field?

It will be removed in future versions of Elasticsearch. It will still be supported in 5.x for indices using `_ttl` that were created in previous versions of Elasticsearch, but new indices can not use this feature and support for it will be removed in Elasticsearch 6.0.0.

---

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [August 28, 2016, 5:30pm UTC](https://discuss.elastic.co/t/time-to-live/59117/3 "2016-08-28T17:30:33Z")

</div>

So it is being removed, How unfortunate for me as this will cause me to write something that will delete expired records rather then something built in to the product.

Oh well, thanks!

---

<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, 10:24pm UTC](https://discuss.elastic.co/t/time-to-live/59117/4 "2017-07-05T22:24:36Z")

</div>


