Im trying write a grok filter for below logs but getting grokfailure. I'm new to logstash, please help me.
Logs: msg.repository.routed.ABC_MAS:101::20170526-05:03:08: got from remote host at t-rate <0.068> and f-size <68> into tmp dir msg.repository.routed.ABC_MAS:101::20170526-05:03:07: got from remote host at t-rate <0.068> and f-size <68> into tmp dir msg.repository.routed.BCD_MAS:101::20170526-00:04:34: sftp connected to 1.2.2.1(msg), timeOut:1000 msg.repository.routed.ABC_MAS:101::20170526-00:04:37: sftp connected to 1.2.2.1(msg), timeOut:1000
Grok pattern which I used: filter { grok { match => { "message" => '(?: %{GREEDYDATA:pullpathinfo}):%{NUMBER:thread}::%{NUMBER:date}-%{NUMBER:HOUR}:%{NUMBER:MINUTE}:%{NUMBER:SECOND}: (?: sftp connected to %{IPORHOST:remoteip} %{GREEDYDATA:msg})' } match => { "message" => '(?: %{GREEDYDATA:pullpathinfo}):%{NUMBER:thread}::%{NUMBER:date}-%{NUMBER:HOUR}:%{NUMBER:MINUTE}:%{NUMBER:SECOND}: (?: got \<%{GREEDYDATA:filename}> %{GREEDYDATA:rate_size})' } } }