The output I get is:
{
"path" => "c:/Java/elk/fhem-logs/test/Sensor_Garden-2016.log",
"@timestamp" => 2016-10-11T09:12:08.911Z,
"@version" => "1",
"host" => "SV-NBK-636",
"message" => "2016-01-01_06:58:10 Sensor_Garden T: 4.4 H: 99",
"type" => "fhem",
"tags" => [
[0] "_grokparsefailure"
]
}
So I tried my expression with http://grokdebug.herokuapp.com/ but I only get "no match". Even if I try %{WORD:something} with input abc I get "no match". I am lost here.
I wonder if the problem could be the trailing carriage return (since you're running on Windows). What if you add \s* to the end of the grok expression?
I am sorry, the solution is too simple to be true. There is a double blank in my GROK expression.
I still do not understand why http://grokdebug.herokuapp.com/ always says "No Match" - that would have helped to track that down - but it works now. Thanks a lot for your help.
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.