elasticsearch/logstash — pull request #1253 by wiibaa (2014-04-11 05:38:53+00:00)
Title: filter/date: Reject invalid UNIX timestamp

When using the date filter with UNIX or UNIX_MS format, if an invalid value is given like a not-resolved sprintf %{mytimestamp} , it is evaluated to zero (thanks String#to_i) and thus reset @timestamp to EPOCH time.

Root cause of #1236 and also mentionned in LOGSTASH-1597

Bugfix + spec!