# Keeping original \_timestamp of document in upsert

**URL:** https://discuss.elastic.co/t/keeping-original--timestamp-of-document-in-upsert/19949
**Category:** Elasticsearch
**Created:** [September 24, 2014, 3:16pm UTC](https://discuss.elastic.co/t/keeping-original--timestamp-of-document-in-upsert/19949 "2014-09-24T15:16:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Devendra\_Laulkar](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@Devendra\_Laulkar](https://discuss.elastic.co/u/Devendra_Laulkar)
#### Post date: [September 24, 2014, 3:16pm UTC](https://discuss.elastic.co/t/keeping-original--timestamp-of-document-in-upsert/19949/1 "2014-09-24T15:16:25Z")

</div>

Hi,

According to the current api documentation, the \_timestamp value is  
automatically updated during an upsert/update operation.  
Is there a way to keep the original \_timestamp value to record the original  
document creation date?

Regards,  
Devendra.

--  
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/c77db286-6f00-4f46-88db-ac22f3958bbb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c77db286-6f00-4f46-88db-ac22f3958bbb%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:00am UTC](https://discuss.elastic.co/t/keeping-original--timestamp-of-document-in-upsert/19949/2 "2017-07-06T01:00:10Z")

</div>


