# Syslog and Auth Logs DateParseFailure

**URL:** <https://discuss.elastic.co/t/syslog-and-auth-logs-dateparsefailure/155376>\
**Category:** Logstash\
**Created:** [November 5, 2018, 9:53am UTC](https://discuss.elastic.co/t/syslog-and-auth-logs-dateparsefailure/155376 "2018-11-05T09:53:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel\_Leite](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/miguel_leite/32/41988_2.png) [@Miguel\_Leite](https://discuss.elastic.co/u/Miguel_Leite)\
**Post date:** [November 5, 2018, 9:53am UTC](https://discuss.elastic.co/t/syslog-and-auth-logs-dateparsefailure/155376/1 "2018-11-05T09:53:45Z")

</div>

Hello,

I have the following date filter configuration to match both timestamps from syslog and auth logs:

```
date {
         locale => "en"
         match => ["[system][syslog][timestamp]", "MMM d HH:mm:ss", "MMM dd HH:mm:ss" ] 
}

```

But it always returns \_Dateparsefailure... I believe it is because the log timestamp format is:

`Nov 2 10:10:10`

Probably spacing troubles, but I can't overcome this error...  
I tried this solution, but it didn't work for me: [https://discuss.elastic.co/t/date-filter--dateparsefailure-solved/64692/11](https://discuss.elastic.co/t/date-filter--dateparsefailure-solved/64692/11)

---

<div class="post-metadata">

**Author:** ![Miguel\_Leite](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/miguel_leite/32/41988_2.png) [@Miguel\_Leite](https://discuss.elastic.co/u/Miguel_Leite)\
**Post date:** [November 5, 2018, 10:07am UTC](https://discuss.elastic.co/t/syslog-and-auth-logs-dateparsefailure/155376/2 "2018-11-05T10:07:05Z")

</div>

Found the solution just with the following line config:

`remove_field => "system.syslog.timestamp"`

---

<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:** [December 3, 2018, 10:07am UTC](https://discuss.elastic.co/t/syslog-and-auth-logs-dateparsefailure/155376/3 "2018-12-03T10:07:11Z")

</div>

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