Can someone please share me the grok pattern for Wowza?. I have tried with below one. The pattern shows Ok on http://grokdebug.herokuapp.com/ site.
But in logstash log , it went to "grokfailure section".
I referred this link to setup: http://blog.stevenmeyer.co.uk/2014/06/organising-wowza-logs-with-logstash-and-grok-custom-syntax.html
Logstash Config:
if [type] == "wowza" {
grok {
match => [ "message", "%{WOWZAACCESSLOG}" ]
add_field => [ "datetime", "%{date} %{time} %{tz}" ]
}
date {
match => [ "datetime", "yyyy-MM-dd HH:mm:ss Z" ]
}
}
Logstash Stdout log :
{
"message" => "2015-07-16\t01:17:33\tUTC\tcreate\tstream\tINFO\t200\t-\t-\t_defaultVHost_\tlive\t_definst_\t0.001\t[any]\t1935\trtmp://10.11.12.122:1935/live/\t10.11.12.13\trtmp\thttps://test.example.com/video.swf\tLNX 15,0,0,189\t414197479\t3559\t3413\t1\t0\t0\t0\t-\t-\t-\t-\t-\t-\trtmp://10.11.12.122:1935/live/\trtmp://10.11.12.122:1935/live/\t-\trtmp://10.11.12.122:1935/live/\t-",
"@version" => "1",
"@timestamp" => "2015-07-15T15:06:59.707Z",
"type" => "wowza",
"file" => "/usr/local/WowzaStreamingEngine/logs/wowzastreamingengine_access.log",
"host" => "test.example.com",
"offset" => "4590",
"tags" => [
[0] "_grokparsefailure"
]
}
here I'm suspecting with \t . But I couldn't confirm and get the problem fixed. Please someone share any idea on this if possible
Thanks