# When I convert start\_time : string to date it does not work

**URL:** <https://discuss.elastic.co/t/when-i-convert-start-time-string-to-date-it-does-not-work/176935>\
**Category:** Logstash\
**Created:** [April 15, 2019, 4:07pm UTC](https://discuss.elastic.co/t/when-i-convert-start-time-string-to-date-it-does-not-work/176935 "2019-04-15T16:07:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![angham](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@angham](https://discuss.elastic.co/u/angham)\
**Post date:** [April 15, 2019, 4:07pm UTC](https://discuss.elastic.co/t/when-i-convert-start-time-string-to-date-it-does-not-work/176935/1 "2019-04-15T16:07:11Z")

</div>

help plz  
when I convert start\_time : string to date it does not work

this is date in the log file : 2019-04-15 15:49:02,988  
filter{  
grok { match =\> ["message", "%{TIMESTAMP\_ISO8601:start\_time}\s%{LOGLEVEL:level} [%{JAVACLASS:class}]\s(%{GREEDYDATA:thread}) HHH000117: HQL: %{GREEDYDATA:[@metadata][text]}" ]}

date {  
target =\> 'start\_time'  
match =\> ["start\_time", "yyyy-mm-dd hh:mm:ss,z"] }  
}

whyy !!!

---

<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 15, 2019, 4:37pm UTC](https://discuss.elastic.co/t/when-i-convert-start-time-string-to-date-it-does-not-work/176935/2 "2019-04-15T16:37:10Z")

</div>

> [@angham](#):
>
> date {  
> target =\> 'start\_time'  
> match =\> ["start\_time", "yyyy-mm-dd hh:mm:ss,z"] }  
> }

Try

```
    date {
        target => 'start_time'
        match => ["start_time", "YYYY-MM-dd HH:mm:ss,SSS"]
    }

```

---

<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:** [May 13, 2019, 4:37pm UTC](https://discuss.elastic.co/t/when-i-convert-start-time-string-to-date-it-does-not-work/176935/3 "2019-05-13T16:37:19Z")

</div>

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