Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#905 authenticated users with / (slash) in username

7.0
open
nobody
None
1
2014-02-17
2013-03-14
Hartmut Vogler
No

Refering to awstats.pl version 7.1.1

I using a authentication system which allows "/" in usernames. I use the LogFormat=1 in the awstats.conf.

I get the error ...


Your log file /apps/pkg/APPL03/var/log/httpd/access.log must have a bad format or LogFormat parameter setup does not match this format.
Your AWStats LogFormat parameter is:
1
This means each line in your web server log file need to have "combined log format" like this:
111.22.33.44 - - [10/Jan/2001:02:14:14 +0200] "GET / HTTP/1.1" 200 1234 "http://www.fromserver.com/from.htm" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"
And this is an example of records AWStats found in your log file (the record number 50 in your log):
164.29.2.151 - sued/hvogler [14/Mar/2013:12:12:43 +0000] "GET /awstats/icon/other/hk.png HTTP/1.1" 304 - "https://w5base-testenv.telekom.de/awstats/cgi-bin/awstats.pl?month=01&year=2013&config=w5base-testenv.telekom.de&framename=mainright&output=urldetail" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11"


It seems, the $PerlParsingFormat in Line 8872 is not correct.

Discussion

  • Hartmut Vogler
    Hartmut Vogler
    2013-03-14

    I have add a quick fix (which works for me) as attachment.

     
    Attachments