Hi Everyone,
I am encountering the following problem: I have been filtering out the "Via_IP1" field from "Via1" which matches on both grok debugger and grok constructor.But when running on logstash ,i could observe grokparsefailure in my tag.
i am using below grok filter ,
grok{
id => "grok5"
match => {"via1" => "^(?:.*SIP/2.0/UDP)(?<Via_IP1>[\s]\d+.\d+.\d+.\d+)?(?:.*)?$" }
}
Output:
"tags" => [
[0] "multiline",
[1] "_grokparsefailure"
],
"SipFromUser:" => "2002005498",
"path" => "/var/log/prod_logs/XS/basatlxs01/XS_Invite.txt",
"@timestamp" => 2017-12-07T14:26:42.313Z,
"channel:" => "Sip ",
"via2" => " tag=0ee7cb75^M\nCall-ID: sAP9-qj5ZJVY4xLJ3f2DTg..^M\n",
"via1" => "SIP/2.0^M\nVia: SIP/2.0/UDP 5060;branch=z9hG4bK-524287-1---d0be5d0eb41a1b32;rport^M\nVia: SIP/2.0/UDP 96.118.191.49:5060;branch=z9hG4bK-524287-1---d0be5d0eb41a1b32;rport^M\nMax-Forwards: 70^M\nContact: <sip:2002005498@96.118.191.49:5060>^M\n",
"ServerName" => "basatlxs01",
"@version" => "1",
"host" => "prod-platform",
"Sip_Method" => "INVITE^M",
"Via_IP1" => " 96.118.000.49"
Could you help me in understating and debugging on this grokparsefailure ?