# Dateparse error out of the blue

**URL:** <https://discuss.elastic.co/t/dateparse-error-out-of-the-blue/91551>\
**Category:** Logstash\
**Created:** [July 2, 2017, 10:36am UTC](https://discuss.elastic.co/t/dateparse-error-out-of-the-blue/91551 "2017-07-02T10:36:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kottapar](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@kottapar](https://discuss.elastic.co/u/kottapar)\
**Post date:** [July 2, 2017, 10:36am UTC](https://discuss.elastic.co/t/dateparse-error-out-of-the-blue/91551/1 "2017-07-02T10:36:11Z")

</div>

Hey guys,

The logstash filter for the ESX messages was working fine. However out of the blue it started throwing \_dateparse errors.

```
{
           "msg" => "bound to 16.54.5.10 -- renewal in 255 seconds.",
           "pid" => "37081",
       "program" => "dhclient-uw",
       "message" => "bound to 16.54.5.10 -- renewal in 255 seconds.",
     "logsource" => "esxs01",
          "tags" => [
        [0] "_dateparsefailure"
    ],
    "@timestamp" => 2017-07-02T10:24:41.000Z,
          "host" => "10.15.13.84",
     "timestamp" => "Jul 2 10:24:41"
}

```

My filter with the date stanza is

```
filter {
  if [logsource] =~ "esxs0[1,2].*" {
    date {
      match => ["timestamp", "MMM dd HH:mm:ss"]
      locale => "en"
      timezone => "UTC"
    }

```

I'm still investigating but posting if anyone has already faced something similar to this.

---

<div class="post-metadata">

**Author:** ![kottapar](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@kottapar](https://discuss.elastic.co/u/kottapar)\
**Post date:** [July 2, 2017, 10:50am UTC](https://discuss.elastic.co/t/dateparse-error-out-of-the-blue/91551/2 "2017-07-02T10:50:12Z")

</div>

> [@kottapar](#):
>
> filter {  
> if [logsource] =~ "esxs0[1,2].\*" {  
> date {  
> match =\> ["timestamp", "MMM dd HH:mm:ss"]  
> locale =\> "en"  
> timezone =\> "UTC"  
> }

My bad. I made an elementary mistake 😛  
Here's my new filter. I didn't take into account ` "MMM d HH:mm:ss"`

```
filter {
  if [logsource] =~ "esxs0[1,2].*" {
    date {
      match => ["timestamp", "MMM dd HH:mm:ss", "MMM d HH:mm:ss"]
      locale => "en"
      timezone => "UTC"
    }

```

---

<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:** [July 30, 2017, 10:50am UTC](https://discuss.elastic.co/t/dateparse-error-out-of-the-blue/91551/3 "2017-07-30T10:50:52Z")

</div>

Closed on July 30, 2017, 10:50am UTC

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