[heka] Heka failed to parse nginx logs

2015-01-22 Thread Yanhong Wu
Hi, I have configured logformat configuration as following lines: [nginx_access_decoder.config] type = "nginx.access" log_format = '$remote_addr - [$time_local] "$request_time $upstream_response_time $gzip_ratio" "$server_name" "$request" $status $body_bytes_sent "$http_referer" "$http_user_ag

Re: [heka] Heka failed to parse nginx logs

2015-01-22 Thread Yanhong Wu
sorry, the above $cookie_username was broken when being copied from two lines. The real variable name is $cookie_username, no blank within. On Thu, Jan 22, 2015 at 4:39 PM, Yanhong Wu wrote: > Hi, > > I have configured logformat configuration as following lines: > > [nginx_access_decoder.config

Re: [heka] Heka failed to parse nginx logs

2015-01-23 Thread Michael Trinkala
The log_format configuration does not match the sample output you provided (beginning at $request_time) On Thu, Jan 22, 2015 at 12:43 AM, Yanhong Wu wrote: > sorry, the above $cookie_username was broken when being copied from two > lines. The real variable name is $cookie_username, no blank with

Re: [heka] Heka failed to parse nginx logs

2015-01-23 Thread Yanhong Wu
After may errors and trials, I found out it was actually gzip_ratio and userid:$cookie_userid causing the parsing issues. $gzip_ratio should be a number, but my sample output is a hyphen; userid:$cookie_userid should have log changed and userid: part removed. I have successfully run the daemon