# Dateparsefailure on logstash

**URL:** <https://discuss.elastic.co/t/dateparsefailure-on-logstash/200235>\
**Category:** Logstash\
**Created:** [September 19, 2019, 2:35pm UTC](https://discuss.elastic.co/t/dateparsefailure-on-logstash/200235 "2019-09-19T14:35:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [September 19, 2019, 2:35pm UTC](https://discuss.elastic.co/t/dateparsefailure-on-logstash/200235/1 "2019-09-19T14:35:28Z")

</div>

I am pulling data from sql and I have date field

I am still getting this error on output. and can't figure out where this is coming from.

```
                     "tags" => [
    [0] "_dateparsefailure"
],

```

I try without any filter and it shows up like this  
"installdate0" =\> 2019-04-11T14:57:59.000Z

How do I parse this one? as it has T in middle.

This is what I have try so far for testing and it give me same error

echo "2019-04-11T14:57:59.000Z" | /usr/share/logstash/bin/logstash -e 'input { stdin {} } filter { date { match =\> ["message", "yyyy-MM-dd HH:mm:ss.SSSZ"] } }'

I also try this but it does not even print anything it just error outs on java

echo "2019-04-11T14:57:59.000Z" | /usr/share/logstash/bin/logstash -e 'input { stdin {} } filter { date { match =\> ["message", "yyyy-MM-ddTHH:mm:ss.SSSZ"] } }'

Looks like I am not parsing this T in middle?

---

<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:** [September 19, 2019, 2:45pm UTC](https://discuss.elastic.co/t/dateparsefailure-on-logstash/200235/2 "2019-09-19T14:45:03Z")

</div>

> [@elasticforme](#):
>
> I try without any filter and it shows up like this  
> "installdate0" =\> 2019-04-11T14:57:59.000Z

If that is the output of a rubydebug codec then you will not be able to parse it using a date filter, nor do you need to. There are no quotes around 2019-04-11T14:57:59.000Z, so it is not a string, it is already a LogStash::Timestamp. The jdbc input can automatically parse date columns into dates, so that you do not need to use a date filter.

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [September 19, 2019, 2:48pm UTC](https://discuss.elastic.co/t/dateparsefailure-on-logstash/200235/3 "2019-09-19T14:48:40Z")

</div>

perfect. I just dump that in index and created template to confirm and it is date field.

---

<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:** [October 17, 2019, 2:48pm UTC](https://discuss.elastic.co/t/dateparsefailure-on-logstash/200235/4 "2019-10-17T14:48:43Z")

</div>

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