# \_ttl inherited from index settings

**URL:** <https://discuss.elastic.co/t/-ttl-inherited-from-index-settings/19556>\
**Category:** Elasticsearch\
**Created:** [September 1, 2014, 2:58pm UTC](https://discuss.elastic.co/t/-ttl-inherited-from-index-settings/19556 "2014-09-01T14:58:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Octavian](https://avatars.discourse-cdn.com/v4/letter/o/54ee81/32.png) [@Octavian](https://discuss.elastic.co/u/Octavian)\
**Post date:** [September 1, 2014, 2:58pm UTC](https://discuss.elastic.co/t/-ttl-inherited-from-index-settings/19556/1 "2014-09-01T14:58:29Z")

</div>

Hello,

Is there any setting that specifies the \_ttl for all documents from a index?

I saw that there is a setting per type, that works[1], but when I try to  
put the same setting per index, it doesn't work.

[1][http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-ttl-field.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-ttl-field.html)

Thank you,

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c12e1cb8-a0c8-4842-a955-4b6d15be0977%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c12e1cb8-a0c8-4842-a955-4b6d15be0977%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 1, 2014, 3:18pm UTC](https://discuss.elastic.co/t/-ttl-inherited-from-index-settings/19556/2 "2014-09-01T15:18:15Z")

</div>

You can do that I guess using index templates: [http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html#indices-templates](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html#indices-templates)

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 1 septembre 2014 à 16:58:32, Octavian ([octavian.rinciog@gmail.com](mailto:octavian.rinciog@gmail.com)) a écrit:

Hello,

Is there any setting that specifies the \_ttl for all documents from a index?

I saw that there is a setting per type, that works[1], but when I try to put the same setting per index, it doesn't work.

[1][http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-ttl-field.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-ttl-field.html)

## Thank you,

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c12e1cb8-a0c8-4842-a955-4b6d15be0977%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c12e1cb8-a0c8-4842-a955-4b6d15be0977%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.54048e38.7a6d8d3c.6ef9%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.54048e38.7a6d8d3c.6ef9%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Octavian](https://avatars.discourse-cdn.com/v4/letter/o/54ee81/32.png) [@Octavian](https://discuss.elastic.co/u/Octavian)\
**Post date:** [September 4, 2014, 9:58am UTC](https://discuss.elastic.co/t/-ttl-inherited-from-index-settings/19556/3 "2014-09-04T09:58:17Z")

</div>

Thank you very much, this is what I'm looking for.

On Monday, September 1, 2014 6:18:33 PM UTC+3, David Pilato wrote:

> You can do that I guess using index templates:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html#indices-templates)
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr  
> [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> 
> Le 1 septembre 2014 à 16:58:32, Octavian ([octavian...@gmail.com](mailto:octavian...@gmail.com)  
> \<javascript:\>) a écrit:
> 
> Hello,
> 
> Is there any setting that specifies the \_ttl for all documents from a  
> index?
> 
> I saw that there is a setting per type, that works[1], but when I try to  
> put the same setting per index, it doesn't work.
> 
> [1]  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-ttl-field.html)
> 
> ## Thank you,
> 
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/c12e1cb8-a0c8-4842-a955-4b6d15be0977%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c12e1cb8-a0c8-4842-a955-4b6d15be0977%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/c12e1cb8-a0c8-4842-a955-4b6d15be0977%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/c12e1cb8-a0c8-4842-a955-4b6d15be0977%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d3735bae-4d28-40cc-826f-9cfb46f91475%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d3735bae-4d28-40cc-826f-9cfb46f91475%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:04am UTC](https://discuss.elastic.co/t/-ttl-inherited-from-index-settings/19556/4 "2017-07-06T01:04:25Z")

</div>


