# \_ingest.timestamp Invalid Format for Date field

**URL:** https://discuss.elastic.co/t/-ingest-timestamp-invalid-format-for-date-field/92718
**Category:** Elasticsearch
**Created:** [July 11, 2017, 9:43pm UTC](https://discuss.elastic.co/t/-ingest-timestamp-invalid-format-for-date-field/92718 "2017-07-11T21:43:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mstruve](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mstruve/32/50419_2.png) [@mstruve](https://discuss.elastic.co/u/mstruve)
#### Post date: [July 11, 2017, 9:43pm UTC](https://discuss.elastic.co/t/-ingest-timestamp-invalid-format-for-date-field/92718/1 "2017-07-11T21:43:05Z")

</div>

I was reading the [docs](https://www.elastic.co/guide/en/elasticsearch/reference/master/accessing-data-in-pipelines.html#accessing-ingest-metadata) about how to use the timestamp from the ingest node to set a field on the document. However, when I try to set a date field(last\_indexed\_at) to the ingest.timestamp I get an Invalid format error which seems weird since I would assume the timestamp would be in a date format recognizable by elasticsearch.

The field I am trying to set to the ingest node timestamp is a date field, format dateOptionalTime.

Anyone know if there is a proper way to do this? Do I need to setup a second date processor to process the timestamp or do I need to change the mapping for the last\_indexed\_at field.

Thanks!

---

<div class="post-metadata">

### Author: ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)
#### Post date: [July 12, 2017, 10:24pm UTC](https://discuss.elastic.co/t/-ingest-timestamp-invalid-format-for-date-field/92718/2 "2017-07-12T22:24:45Z")

</div>

This is fixed for 6.0.

> <https://github.com/elastic/elasticsearch/pull/24030>

In 5.5.0, you can use the new behavior by setting `ingest.new_date_format` to `true`.

---

<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: [August 9, 2017, 10:24pm UTC](https://discuss.elastic.co/t/-ingest-timestamp-invalid-format-for-date-field/92718/3 "2017-08-09T22:24:48Z")

</div>

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