# Automatic \_timestamp upon indexing

**URL:** <https://discuss.elastic.co/t/automatic-timestamp-upon-indexing/121738>\
**Category:** Elasticsearch\
**Created:** [February 27, 2018, 9:16pm UTC](https://discuss.elastic.co/t/automatic-timestamp-upon-indexing/121738 "2018-02-27T21:16:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dr\_dob](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dr\_dob](https://discuss.elastic.co/u/dr_dob)\
**Post date:** [February 27, 2018, 9:16pm UTC](https://discuss.elastic.co/t/automatic-timestamp-upon-indexing/121738/1 "2018-02-27T21:16:38Z")

</div>

Hi!

I've been trying to find out how to automate timestamping of document indexing. I see that \_timestamp is not supported anymore, so I assume the following mapping does not work anymore:

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

So, I have to create a date field now, but is there anyway to automate the timestamp?

Thanks a bunch

---

<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:** [February 27, 2018, 10:42pm UTC](https://discuss.elastic.co/t/automatic-timestamp-upon-indexing/121738/2 "2018-02-27T22:42:31Z")

</div>

You need to solve that on your application side.  
Or you might be able to use a painless processor in an ingest pipeline.

---

<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:** [March 27, 2018, 10:42pm UTC](https://discuss.elastic.co/t/automatic-timestamp-upon-indexing/121738/3 "2018-03-27T22:42:37Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
