我试着写一个grok过滤器为以下日志,但得到grokfailure。我是logstash的新手,请帮助我。logstash为自定义日志
日志: msg.repository.routed.ABC_MAS:101 :: 20170526-05:03:08:从远程主机在t-速率< 0.068>和f-大小< 68>到TMP DIR MSG得到。 repository.routed.ABC_MAS:101 :: 20170526-05:03:07:从远程主机以t-rate < 0.068>和f-size < 68>获取到tmp目录 msg.repository.routed.BCD_MAS:101 :: smsp连接到1.2.2.1(msg),timeOut:1000 msg.repository.routed.ABC_MAS:101 :: 20170526-00:04:37:sftp连接到1.2.2.1(msg) ,timeOut:1000
我使用的Grok模式: filter { grok {= {“message”=>'(?:%{GREEDYDATA:pullpathinfo}):%{NUMBER:thread} ::%{NUMBER:date} - %{NUMBER:HOUR}:%{NUMBER :%{数字:SECOND}:(?:sftp连接到%{IPORHOST:remoteip}%{GREEDYDATA:msg})'} match => {“message”=>'(?:%{GREEDYDATA: ):%{NUMBER:thread} ::%{NUMBER:date} - %{NUMBER:HOUR}:%{NUMBER:MINUTE}:%{NUMBER:SECOND}:(?:got \ <%{GREEDYDATA: %{GREEDYDATA:rate_size})'} } }