# ES 2.0.0 does not accept timestamp path and mapping

**URL:** <https://discuss.elastic.co/t/es-2-0-0-does-not-accept-timestamp-path-and-mapping/34435>\
**Category:** Elasticsearch\
**Created:** [November 12, 2015, 4:14pm UTC](https://discuss.elastic.co/t/es-2-0-0-does-not-accept-timestamp-path-and-mapping/34435 "2015-11-12T16:14:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nithyanand\_Vasudevan](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@Nithyanand\_Vasudevan](https://discuss.elastic.co/u/Nithyanand_Vasudevan)\
**Post date:** [November 12, 2015, 4:14pm UTC](https://discuss.elastic.co/t/es-2-0-0-does-not-accept-timestamp-path-and-mapping/34435/1 "2015-11-12T16:14:42Z")

</div>

Hi,

The following template mapping

> curl -XPUT [http://localhost:9200/template/service\_01](http://localhost:9200/template/service_01) -d '{  
> "template" : "service\*",  
> "order": 1,  
> "settings" : {  
> "index.cache.field.type" : "soft",  
> "index.refresh\_interval" : "5s",  
> "index.store.compress.stored" : true,  
> "mapping.allow\_type\_wrapper": true  
> },  
> "mappings" : {  
> "\_default" : {  
> "\_all" : {"enabled" : false},  
> "\_timestamp" : {"enabled" : true,"path" : "0STARTTIMESTAMP","format" : "YYYY/MM/dd HH:mm:ss"},  
> "properties" : {  
> "0STARTTIMESTAMP": {  
> "type": "date",  
> "format": "YYYY/MM/dd HH:mm:ss"  
> },  
> "STOPTIMESTAMP": {  
> "type": "date",  
> "format": "YYYY/MM/dd HH:mm:ss"  
> }  
> }  
> }  
> }  
> }'

Works great in ES 1.4.4. For the below data.

> {"index":{"\_index":"service\_sapstats","\_type":"mytype"}}  
> {"0STARTTIMESTAMP":"2015/02/13 13:00:00","\*STOPTIMESTAMP":"2015/02/13 13:15:00","data":"somedata"}

But in ES 2.0.0 it throws the below exceptions.

> {"index":{"index":"service\_sapstats","\_type":"SAM","\_id":null,"status":400,"error":{"type":"mapper\_parsing\_exception","reason":"mapping [\_default]","caused\_by":{"type":"mapper\_parsing\_exception","reason":"Mapping definition for [\_timestamp] has unsupported parameters: [path : 0STARTTIMESTAMP]"}}

in ES 2.0.0

---

<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:** [November 12, 2015, 4:49pm UTC](https://discuss.elastic.co/t/es-2-0-0-does-not-accept-timestamp-path-and-mapping/34435/2 "2015-11-12T16:49:05Z")

</div>

[https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking\_20\_mapping\_changes.html#\_literal\_index\_name\_literal\_and\_literal\_path\_literal\_removed](https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_20_mapping_changes.html#_literal_index_name_literal_and_literal_path_literal_removed)

---

<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, 11:38pm UTC](https://discuss.elastic.co/t/es-2-0-0-does-not-accept-timestamp-path-and-mapping/34435/3 "2017-07-05T23:38:54Z")

</div>


