# Breaking \_ingest.timestamp change in ES 5.3.0

**URL:** <https://discuss.elastic.co/t/breaking--ingest-timestamp-change-in-es-5-3-0/82824>\
**Category:** Elasticsearch\
**Created:** [April 19, 2017, 6:23am UTC](https://discuss.elastic.co/t/breaking--ingest-timestamp-change-in-es-5-3-0/82824 "2017-04-19T06:23:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mha](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mha](https://discuss.elastic.co/u/mha)\
**Post date:** [April 19, 2017, 6:23am UTC](https://discuss.elastic.co/t/breaking--ingest-timestamp-change-in-es-5-3-0/82824/1 "2017-04-19T06:23:57Z")

</div>

Same as:

> [@Breaking \_ingest.timestamp change in ES 5.2.0](https://discuss.elastic.co/t/breaking--ingest-timestamp-change-in-es-5-2-0/73575):
>
> I have a very simple ingest set processor which copied from our official document, it stop working after upgrading to 5.2.0 yesterday. { "set": { "field": "received" "value": "{{\_ingest.timestamp}}" } } now every document indexing was reject and throw below errors. { "error": { "root\_cause": [{ "type": "mapper\_parsing\_exception", "reason": "failed to parse [received]" } ], "type": "mapper\_parsing\_exception", "reason": "failed to parse [timestamp]", "caused\_by": { "type": "il…

which was closed without any examples or explanation.

I have a simple code:  
processors": [  
{  
"set": {  
"field": "mo\_timestamp\_server",  
"value": "{{\_ingest.timestamp}}"  
}  
}

where mo\_timestamp\_server is mapped:  
"mo\_timestamp\_server": {  
"type": "date"  
}

and after migration from 5.0.2 to 5.3.0 it doesn't work anymore throwing exception:

"illegal\_argument\_exception","reason":"Invalid format: "Wed Apr 19 05:59:44 UTC 2017"

How can I define \_ingest.timestamp format to follow this:  
"timestamp": "2016-06-21T18:48:55.560+0000"

Best

Mikolaj Habdank

---

<div class="post-metadata">

**Author:** ![mha](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mha](https://discuss.elastic.co/u/mha)\
**Post date:** [April 19, 2017, 8:21am UTC](https://discuss.elastic.co/t/breaking--ingest-timestamp-change-in-es-5-3-0/82824/3 "2017-04-19T08:21:52Z")

</div>

working solution is:  
"script": {  
"lang": "groovy",  
"inline": "ctx.mo\_timestamp\_server = Instant.now()",  
"ignore\_failure": false  
}

painless doesn't support Instant.now()  
processor set doesn't support correct formating and any ISO.. doesn't work  
"set": {  
"field": "mo\_timestamp\_server",  
"value": "{{DateTimeFormatter.ISO\_OFFSET\_DATE\_TIME.parse(\_ingest.timestamp)}}"  
}

---

<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:** [May 17, 2017, 8:26am UTC](https://discuss.elastic.co/t/breaking--ingest-timestamp-change-in-es-5-3-0/82824/4 "2017-05-17T08:26:46Z")

</div>

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