When I implemented Elastic Stack: Logging Lab4, I encounter a problem by following page 7 in the Lab4. I added the following code as stated in the lab:
grok{
match => '%{HTTPDATE:timestamp} %{IP:ip} <%{DATA:msg}>'
}
However, I got the error when run logstash, and the error message is "[0] _grokparsefailure', and I have installed grok as well.!
The following are my logstash config file before and after I change it:
OK, so what is going is that grok expect your text to match the pattern you've defined for it. In your case your grok filter has 3 patterns it is looking for, HTTPDATE, IP and DATA - in that order. The message you're testing with, "Good morning!" doesn't match that pattern. It's simply text. You would need to input a line that had something that matched an HTTPDATE, and IP address and then some text for the DATA part. For instance, this could work:
01/Sep/2015:06:22:11 -0400 192.168.0.1 This is the data part!
And try it with this config (which is the same as your mainly):
input {
stdin {}
}
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.