# Date format support

**URL:** <https://discuss.elastic.co/t/date-format-support/107485>\
**Category:** Kibana\
**Created:** [November 14, 2017, 4:49am UTC](https://discuss.elastic.co/t/date-format-support/107485 "2017-11-14T04:49:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![uvarisubash](https://avatars.discourse-cdn.com/v4/letter/u/c37758/32.png) [@uvarisubash](https://discuss.elastic.co/u/uvarisubash)\
**Post date:** [November 14, 2017, 4:49am UTC](https://discuss.elastic.co/t/date-format-support/107485/1 "2017-11-14T04:49:09Z")

</div>

Hi ,

I am trying to inject "Tue Oct 03 07:29:52 2017" date format. But i am getting below error. But few reference says that supports are available for the format which i am trying here.

{  
"error" : {  
"root\_cause" : [  
{  
"type" : "mapper\_parsing\_exception",  
"reason" : "failed to parse [log.message.@timestamp]"  
}  
],  
"type" : "mapper\_parsing\_exception",  
"reason" : "failed to parse [log.message.@timestamp]",  
"caused\_by" : {  
"type" : "illegal\_argument\_exception",  
"reason" : "Invalid format: "Tue Oct 03 07:29:52 2017""  
}  
},  
"status" : 400  
}

thanks,  
Subash

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [November 14, 2017, 9:37pm UTC](https://discuss.elastic.co/t/date-format-support/107485/2 "2017-11-14T21:37:58Z")

</div>

Do you have a date format setup in your elasticsearch mapping? You'll need to specify a custom mapping that will teach Elasticsearch how to parse that specific format, which you can do with the [custom date format option](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-date-format.html#custom-date-formats) on date type fields.

---

<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:** [December 12, 2017, 9:38pm UTC](https://discuss.elastic.co/t/date-format-support/107485/3 "2017-12-12T21:38:08Z")

</div>

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