# \_timestamp default not used when path is specified

**URL:** <https://discuss.elastic.co/t/-timestamp-default-not-used-when-path-is-specified/19694>\
**Category:** Elasticsearch\
**Created:** [September 9, 2014, 6:17pm UTC](https://discuss.elastic.co/t/-timestamp-default-not-used-when-path-is-specified/19694 "2014-09-09T18:17:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaston\_Tonietti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gaston_tonietti/32/1292_2.png) [@Gaston\_Tonietti](https://discuss.elastic.co/u/Gaston_Tonietti)\
**Post date:** [September 9, 2014, 6:17pm UTC](https://discuss.elastic.co/t/-timestamp-default-not-used-when-path-is-specified/19694/1 "2014-09-09T18:17:09Z")

</div>

Hi guys,

I have a problem setting up my \_timestamp strategy, I have an index with  
\_timestamp enabled with the following mapping:

"my\_index": {"mappings": {"_default_": {"\_timestamp": {"enabled": true,"  
store": true,  
"default": "now",  
"path": "my\_timestamp"},"properties": {}},  
}}

And here is my problem, when _my\_timestamp_ field is present in the doc to  
index all goes well, but when it's not the indexing fails saying that a  
timestamp couldn't be parsed. I understand from the documentation that when  
no value is provided in request or \_source the default value should be used.

Am I doing something wrong?  
Thank you!

Gaston.  
@ktonga

--  
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/965eab88-7889-41a6-af42-3238cc7c4bed%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/965eab88-7889-41a6-af42-3238cc7c4bed%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:03am UTC](https://discuss.elastic.co/t/-timestamp-default-not-used-when-path-is-specified/19694/2 "2017-07-06T01:03:33Z")

</div>


