# grokparseFailure

**URL:** <https://discuss.elastic.co/t/grokparsefailure/53467>\
**Category:** Logstash\
**Created:** [June 21, 2016, 8:38am UTC](https://discuss.elastic.co/t/grokparsefailure/53467 "2016-06-21T08:38:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![supermario9](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@supermario9](https://discuss.elastic.co/u/supermario9)\
**Post date:** [June 21, 2016, 8:38am UTC](https://discuss.elastic.co/t/grokparsefailure/53467/1 "2016-06-21T08:38:37Z")

</div>

Hello,

Log:  
2016-05-15 00:00:01,305 [fileUtils.py](http://fileUtils.py)(167): INFO Finished removing hpsp\_msaLogRotate from the system.

I get a grokparsefailure for the following:  
grok { match =\> {"message" =\> "%{TIMESTAMP\_ISO8601:timestamp} %{GREEDYDATA:msg}"}

I even tried grok { match =\> {"message" =\> "%{DATE:timestamp\_d} %{TIME:timestamp\_t} %{GREEDYDATA:msg}"}  
and grok { match =\> {"message" =\> "%{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{HOUR}:%{MINUTE}:%{SECOND} %{GREEDYDATA:msg}"}

All these formats work fine on the grok debugger, but not on my instance of logstash.

Can someone please help me out with it?

Thank you.

---

<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:** [June 21, 2016, 9:05am UTC](https://discuss.elastic.co/t/grokparsefailure/53467/2 "2016-06-21T09:05:01Z")

</div>

Works fine for me:

```nohighlight
$ cat test.config 
input { stdin { } }
output { stdout { codec => rubydebug } }
filter {
  grok {
    match => {
      "message" => "%{TIMESTAMP_ISO8601:timestamp} %{GREEDYDATA:msg}"
    }
  }
}
$ echo '2016-05-15 00:00:01,305 fileUtils.py(167): INFO Finished removing hpsp_msaLogRotate from the system.' | /opt/logstash/bin/logstash -f test.config
Settings: Default pipeline workers: 8
Pipeline main started
{
       "message" => "2016-05-15 00:00:01,305 fileUtils.py(167): INFO Finished removing hpsp_msaLogRotate from the system.",
      "@version" => "1",
    "@timestamp" => "2016-06-21T08:59:56.999Z",
          "host" => "lnxolofon",
     "timestamp" => "2016-05-15 00:00:01,305",
           "msg" => "fileUtils.py(167): INFO Finished removing hpsp_msaLogRotate from the system."
}
Pipeline main has been shutdown
stopping pipeline {:id=>"main"}

```

---

<div class="post-metadata">

**Author:** ![supermario9](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@supermario9](https://discuss.elastic.co/u/supermario9)\
**Post date:** [June 21, 2016, 9:40am UTC](https://discuss.elastic.co/t/grokparsefailure/53467/3 "2016-06-21T09:40:47Z")

</div>

My configuration file had a semantic error elsewhere, which was causing the error. It works for me now.

Thanks a lot!

---

<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 6, 2017, 4:51am UTC](https://discuss.elastic.co/t/grokparsefailure/53467/4 "2017-07-06T04:51:31Z")

</div>


