# Create document with \_timestamp or date ES 2.x

**URL:** <https://discuss.elastic.co/t/create-document-with--timestamp-or-date-es-2-x/55727>\
**Category:** Elasticsearch\
**Created:** [July 18, 2016, 6:54am UTC](https://discuss.elastic.co/t/create-document-with--timestamp-or-date-es-2-x/55727 "2016-07-18T06:54:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guillermo\_Ortiz](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@Guillermo\_Ortiz](https://discuss.elastic.co/u/Guillermo_Ortiz)\
**Post date:** [July 18, 2016, 6:54am UTC](https://discuss.elastic.co/t/create-document-with--timestamp-or-date-es-2-x/55727/1 "2016-07-18T06:54:05Z")

</div>

Hello,

I want to index documents with a \_timestamp or date field when I index the documents. I have read the documentation and the \_timestamp option is deprecated.

I have create an template with the f"\_timestamp" field and is created but it doesn't appear in Kibana, which one could it be the reason?

I finally index the documents with Spark, I'd like to have an automatic way to do it and do n't to have to index the \_timestamp field explicitly.

---

<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 5, 2017, 10:34pm UTC](https://discuss.elastic.co/t/create-document-with--timestamp-or-date-es-2-x/55727/2 "2017-07-05T22:34:50Z")

</div>


