Browser stats are not showing for custom log formats - Apache

Avatar
  • updated
  • Fixed
HI

At the moment I am evaluating the product to analyze our Apache logs. I am using the below custom log format, but I cannot see the browser stats. Rest of the report seems fine. The browser stats showing as "others" instead of different browsers.

%h %l %u %t %D \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\

Any ideas?

Thanks
Avatar
Roshan Pradeep
Sample log line is like below.
1.2.3.4 - - [04/Feb/2014:05:45:10 +1100] 1009 "GET /js/Suggest3.js HTTP/1.1" 200 2891 "https://site.com/web_com/mapLocationP..." "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)" TLSv1 DHE-RSA-AES256-SHA 256 256 -/- (-)
Avatar
Michael
The problem appears because the current stable version (8.2) requires the \"%{User-agent}i\" field to be written as \"%{User-Agent}i\" (with large "A"), so you need to change it in your log format.

We have already fixed the issue in version 8.3 beta, so alternatively you can install this version and use it with the original log format.