# Logstash date parsing error (bug?)

**URL:** <https://discuss.elastic.co/t/logstash-date-parsing-error-bug/107503>\
**Category:** Logstash\
**Created:** [November 14, 2017, 7:45am UTC](https://discuss.elastic.co/t/logstash-date-parsing-error-bug/107503 "2017-11-14T07:45:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mojster](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mojster/32/21209_2.png) [@Mojster](https://discuss.elastic.co/u/Mojster)\
**Post date:** [November 14, 2017, 7:45am UTC](https://discuss.elastic.co/t/logstash-date-parsing-error-bug/107503/1 "2017-11-14T07:45:02Z")

</div>

I'm using this pattern to parse dates from strings to date objects:

```auto
date {
		locale => "en"
		match => ["firstsignUpDate", "dd.MM.YYYY"]
		timezone => "Europe/Ljubljana"
		target => "firstsignUpDate"
	}

```

When a pars a log message containing `firstsignUpDate=07.03.0000` I get this message in our error log:  
`"error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse [firstsignUpDate]", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"Invalid format: \"07.03.0000\" is malformed at \".03.0000\""}}}}}`

I know from practical reasons that our date should not be in year 0000, but still this date is valid & it should go through the pattern.  
Is there a minimum date limitation or is this a bug?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 14, 2017, 2:44pm UTC](https://discuss.elastic.co/t/logstash-date-parsing-error-bug/107503/2 "2017-11-14T14:44:33Z")

</div>

date has no problem parsing 01.01.0001. But what is the year before year 0001? Not sure I agree that it is year 0000...

---

<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, 2:44pm UTC](https://discuss.elastic.co/t/logstash-date-parsing-error-bug/107503/3 "2017-12-12T14:44:41Z")

</div>

Closed on December 12, 2017, 2:44pm UTC

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