# Unable to store both type of date formats.Getting mapper\_parsing\_exception

**URL:** <https://discuss.elastic.co/t/unable-to-store-both-type-of-date-formats-getting-mapper-parsing-exception/162793>\
**Category:** Elasticsearch\
**Created:** [January 3, 2019, 11:38am UTC](https://discuss.elastic.co/t/unable-to-store-both-type-of-date-formats-getting-mapper-parsing-exception/162793 "2019-01-03T11:38:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ani](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@Ani](https://discuss.elastic.co/u/Ani)\
**Post date:** [January 3, 2019, 11:38am UTC](https://discuss.elastic.co/t/unable-to-store-both-type-of-date-formats-getting-mapper-parsing-exception/162793/1 "2019-01-03T11:38:41Z")

</div>

We are sending two type of log files ,

In 1st Log pattern is : 2019-01-03T14:25:34,156 com.abc.notificationmanagement.service.NotificationMgmtServiceImpl - CC Addresses After Replacing Invalids:null

In 2nd Log pattern is: 2018-12-31 06:04:30,291 DEBUG BPM c8bb1e7c-0ca8-11e9-9d53-0a0484180000 c8bb1cd8-0ca8-11e9-9d53-0a0484180000 SOE abc null sal

GrokPattern for TimeStamp :^%{TIMESTAMP\_ISO8601:timestamp\_match}

Both File is passed through Filebeat and Logstash but only 1st logs are showing in KIbana,

We are getting Below messege in Logstash Log output :

Elasticsearch. {:status=\>400, :action=\>["index", {:\_id=\>nil, :\_index=\>"uat\_elk-2019.01.02", :\_type=\>"doc", :\_routing=\>nil}, #LogStash::Event:0x7830313f], :response=\>{"index"=\>{"\_index"=\>"uat\_elk-2019.01.02", "\_type"=\>"doc", "\_id"=\>"fZ7PDmgB4qCW4Xakg7a-", "status"=\>400, "error"=\>{"type"=\>"mapper\_parsing\_exception", "reason"=\>"failed to parse [timestamp\_match]", "caused\_by"=\>{"type"=\>"illegal\_argument\_exception", "reason"=\>"Invalid format: "2019-01-02 16:45:00,422" is malformed at " 16:45:00,422""}}}}}  
1st type Log:

---

<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:** [January 31, 2019, 11:38am UTC](https://discuss.elastic.co/t/unable-to-store-both-type-of-date-formats-getting-mapper-parsing-exception/162793/2 "2019-01-31T11:38:52Z")

</div>

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