# Dateparse failure jdbc

**URL:** https://discuss.elastic.co/t/dateparse-failure-jdbc/226055
**Category:** Logstash
**Created:** [April 1, 2020, 1:16pm UTC](https://discuss.elastic.co/t/dateparse-failure-jdbc/226055 "2020-04-01T13:16:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![karlm](https://avatars.discourse-cdn.com/v4/letter/k/d2c977/32.png) [@karlm](https://discuss.elastic.co/u/karlm)
#### Post date: [April 1, 2020, 1:16pm UTC](https://discuss.elastic.co/t/dateparse-failure-jdbc/226055/1 "2020-04-01T13:16:05Z")

</div>

i have an datetime column from sql and trying to map it to the @timetsamp field but receiving date parse error

sql column

```
date
2020-03-24 11:44:03.000

```

filter

```
filter{
  date {
      match => ["date", "yyyy-MM-dd HH:mm:ss.SSS" , "ISO8601"]
      target => "@timestamp"
  }   
}

```

result

```
"_source": {
        "date": "2020-03-10T09:35:37.000Z",
        "@timestamp": "2020-04-01T13:10:52.064Z",
        "tags": [
         "_dateparsefailure"
        ]
     }

```

any help please?

---

<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: [April 1, 2020, 3:02pm UTC](https://discuss.elastic.co/t/dateparse-failure-jdbc/226055/2 "2020-04-01T15:02:21Z")

</div>

If the column is a date in the database the jdbc filter will have converted it into a LogStash::Timestamp. You [should](https://github.com/logstash-plugins/logstash-filter-date/issues/95) mutate+convert it to a string before calling a date filter.

---

<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: [April 29, 2020, 3:14pm UTC](https://discuss.elastic.co/t/dateparse-failure-jdbc/226055/3 "2020-04-29T15:14:36Z")

</div>

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