I'm migrating from logstash 1.4.1 to 2.3.1 and grok is giving me troubles, seems like it's not behaving like it used to. Is giving me grokparsefailure on this data:
Found the problem, the grok pattern for MONTH doesn't like when the first letter of the month is lowercase. I modified the pattern in ./vendor/bundle/jruby/1.9/gems/logstash-patterns-core-2.0.5/patterns/grok-patterns to be case insensitive and now it works.
Yes, the original logs come with the first letter uppercase, then I lowercase the whole event and then filter it with grok.
That's why it was failing, I found out about it after I commented out the part that "lowercases" the message and the problem stopped. Then I checked the grok patterns that come with logstash and saw that the MONTH one was coded so that the first letter had to be uppercase. I thought to myself that the best way to fix it was to make it case insensitive and avoid future problems, I just did that and it started working.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.