# Enabling the timestamp in ES - where?

**URL:** <https://discuss.elastic.co/t/enabling-the-timestamp-in-es-where/11990>\
**Category:** Elasticsearch\
**Created:** [May 16, 2013, 7:26am UTC](https://discuss.elastic.co/t/enabling-the-timestamp-in-es-where/11990 "2013-05-16T07:26:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sushil\_Singh](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@Sushil\_Singh](https://discuss.elastic.co/u/Sushil_Singh)\
**Post date:** [May 16, 2013, 7:26am UTC](https://discuss.elastic.co/t/enabling-the-timestamp-in-es-where/11990/1 "2013-05-16T07:26:45Z")

</div>

I have to enable the \_timestamp. But I am confused as to where do I enable  
it.

Can I do it in the same /config/mappings/\_default/_default_.json?

Doing it there gives an error .

Kindly tell me in which file should I declare it so that it applies to all  
the indices.

By default it is disabled, in order to enable it, the following mapping  
should be defined:

{  
"tweet" : {  
"\_timestamp" : { "enabled" : true }  
}  
}

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [May 16, 2013, 7:55am UTC](https://discuss.elastic.co/t/enabling-the-timestamp-in-es-where/11990/2 "2013-05-16T07:55:47Z")

</div>

Easiest way is to me: Put Mapping API

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 mai 2013 à 09:26, Sushil Singh [sus.rita914@gmail.com](mailto:sus.rita914@gmail.com) a écrit :

> I have to enable the \_timestamp. But I am confused as to where do I enable it.
> 
> Can I do it in the same /config/mappings/\_default/_default_.json?
> 
> Doing it there gives an error .
> 
> Kindly tell me in which file should I declare it so that it applies to all the indices.
> 
> By default it is disabled, in order to enable it, the following mapping should be defined:
> 
> ## { "tweet" : { "\_timestamp" : { "enabled" : true } } }
> 
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [May 16, 2013, 9:36am UTC](https://discuss.elastic.co/t/enabling-the-timestamp-in-es-where/11990/3 "2013-05-16T09:36:17Z")

</div>

Aakash,

I repeat: look at [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help) to learn how to  
provide all the info with your question. Especially: a gist of what you  
have already tried.

Otherwise we're just guessing.

On 16 May 2013 09:55, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Easiest way is to me: Put Mapping API  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-indices-put-mapping/)
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 16 mai 2013 à 09:26, Sushil Singh [sus.rita914@gmail.com](mailto:sus.rita914@gmail.com) a écrit :
> 
> I have to enable the \_timestamp. But I am confused as to where do I enable  
> it.
> 
> Can I do it in the same /config/mappings/\_default/_default_.json?
> 
> Doing it there gives an error .
> 
> Kindly tell me in which file should I declare it so that it applies to all  
> the indices.
> 
> By default it is disabled, in order to enable it, the following mapping  
> should be defined:
> 
> {  
> "tweet" : {  
> "\_timestamp" : { "enabled" : true }  
> }  
> }
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:36am UTC](https://discuss.elastic.co/t/enabling-the-timestamp-in-es-where/11990/4 "2017-07-06T02:36:21Z")

</div>


