# Current timestamp

**URL:** https://discuss.elastic.co/t/current-timestamp/156850
**Category:** Elasticsearch
**Created:** [November 15, 2018, 12:08pm UTC](https://discuss.elastic.co/t/current-timestamp/156850 "2018-11-15T12:08:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Animesh\_singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/animesh_singh/32/46768_2.png) [@Animesh\_singh](https://discuss.elastic.co/u/Animesh_singh)
#### Post date: [November 15, 2018, 12:08pm UTC](https://discuss.elastic.co/t/current-timestamp/156850/1 "2018-11-15T12:08:03Z")

</div>

hey experts,  
Can anyone help me with obtaining the timestamp of a document when it was indexed ?  
value should be given by elastic search server .

---

<div class="post-metadata">

### Author: ![abdon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abdon/32/9195_2.png) [@abdon](https://discuss.elastic.co/u/abdon)
#### Post date: [November 16, 2018, 1:16pm UTC](https://discuss.elastic.co/t/current-timestamp/156850/2 "2018-11-16T13:16:51Z")

</div>

By default, Elasticsearch will not be able tell you when a document was indexed. If this is something you need to know, you will have to add a field with a timestamp to your documents yourself, when you index those. You can for example use an [ingest pipeline](https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html) for that.

---

<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: [December 14, 2018, 1:16pm UTC](https://discuss.elastic.co/t/current-timestamp/156850/3 "2018-12-14T13:16:51Z")

</div>

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