Removing/fixing shibboleth stats in Apache logs

Roland Tanner roland at tannerritchie.com
Mon Sep 17 21:32:34 EDT 2012


Hi,

I use Awstats for analysing server stats, but I've found that users 
logged in with Shibboleth can cause Apache logs that 'break' Awstats.

Here's my general log entry:

domain.org 92.21.59.46 - - [17/Sep/2012:20:30:47 -0400] "HEAD / 
HTTP/1.1" 200 - "http://www.referrer.com" "Mozilla/5.0 (Windows; U; 
Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"

And here's a shibboleth log

domain.com 82.34.228.251 - 
https://idp.university.ac.uk/shibboleth!https://some.resource.com/shibboleth-sp!p610nflqaikrki6sodm43hb36 
[17/Sep/2012:17:21:13 -0400] "GET /shibboleth/path/to/file.html 
HTTP/1.1" 206 6656 "-" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 
6.1; WOW64; Trident/5.0)"

The 
"https://idp.university.ac.uk/shibboleth!https://some.resource.com/shibboleth-sp!p610nflqaikrki6sodm43hb36" 
is the 'login name', but Awstats is expecting something that looks a bit 
more like "John", and I presume a character is causing the code to stop.

Is there a quick way to stop shibd adding logs to Apache's logs, or is 
that something that needs to be handled through the Apache config?

Many thanks,

RT




More information about the users mailing list