# Date Parsing issue

**URL:** <https://discuss.elastic.co/t/date-parsing-issue/119370>\
**Category:** Logstash\
**Created:** [February 11, 2018, 7:20am UTC](https://discuss.elastic.co/t/date-parsing-issue/119370 "2018-02-11T07:20:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aravindtga](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@aravindtga](https://discuss.elastic.co/u/aravindtga)\
**Post date:** [February 11, 2018, 7:20am UTC](https://discuss.elastic.co/t/date-parsing-issue/119370/1 "2018-02-11T07:20:59Z")

</div>

I am trying to get the date from the following line

`> [Tue Jan 23 11:32:45 2018] [DEBUG] Client.java(): ClientListGet`

To which I wrote the following configuration for logstash

> filter {  
> date {  
> match =\> ["timestamp","EEE MMM dd HH:mm:ss yyyy"]  
> target =\> "@timestamp"  
> locale =\> "en"  
> }  
> }

It doesn't parse and map the result to @timestamp field and the result is below, There is no error returned at this time

> ```
> {
> "@version" => "1",
> "host" => "xhost.com",
> "@timestamp" => 2018-02-11T07:04:14.666Z,
> "message" => "[Tue Jan 23 11:32:45 2018] [DEBUG] Client.java(): ClientListGet"
> }
> 
> ```

For the following configuration dateparsefailure is thrown

> filter {  
> date {  
> match =\> ["@timestamp","EEE MMM dd HH:mm:ss yyyy"]  
> locale =\> "en"  
> }  
> }

Is there any configuration needs to be changed to get it working

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 12, 2018, 8:54pm UTC](https://discuss.elastic.co/t/date-parsing-issue/119370/2 "2018-02-12T20:54:02Z")

</div>

> {  
> "@version" =\> "1",  
> "host" =\> "[xhost.com](http://xhost.com)",  
> "@timestamp" =\> 2018-02-11T07:04:14.666Z,  
> "message" =\> "[Tue Jan 23 11:32:45 2018] [DEBUG] Client.java(): ClientListGet"  
> }

This event has no `timestamp` field to parse.

---

<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:** [March 12, 2018, 8:54pm UTC](https://discuss.elastic.co/t/date-parsing-issue/119370/3 "2018-03-12T20:54:43Z")

</div>

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