Package: awstats
Version: 6.9.5~dfsg-5
Severity: important
Please ignore the missing config files, I'm using another names to them.

For some days, Awstats stopped logging a lot of data, and I discovered the
problem: I'm using LogRotate, and frequently the first line of my log files
is something like:

66.249.76.217 - - [17/Apr/2013:10:45:08 -0300] "\x16\x03\x01" 200 1709 "-" "-"

My server is http, and I can replicate this trying open https://myserver,
and I will have another line like this at logs.

Apache is OK, this is a valid combined log for "SSL not found" errors, but
when this appears at first log line (what heppens sometimes here even next
logrotate run), awstats shows me an error like this:


#######
So searching new records from beginning of log file...
AWStats did not find any valid log lines that match your LogFormat
parameter, in the 50th first non commented lines read of your log.
Your log file
/var/log/apache2/myhost-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):
66.249.76.225 - - [14/Apr/2013:15:29:31 -0300] "\x16\x03" 200 1709 "-" "-"
########


If the first line is a normal combined log line, the SSL error lines are
ignored and Awstats works OK. See I'm loosing important data, since the next
time logrotate runs and correct the first line, all rotated data is lost.
And if at next logrotate runs the first line is again something like the SSL
error, I will loose more data.




-- System Information:
Debian Release: 6.0.7
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR, LC_CTYPE=pt_BR (charmap=locale: Cannot set LC_CTYPE to 
default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages awstats depends on:
ii  perl                   5.10.1-17squeeze5 Larry Wall's Practical Extraction 

Versions of packages awstats recommends:
ii  coreutils                     8.5-1      GNU core utilities
ii  libnet-xwhois-perl            0.90-3     Whois Client Interface for Perl5

Versions of packages awstats suggests:
ii  apache2               2.2.16-6+squeeze10 Apache HTTP Server metapackage
ii  apache2-mpm-itk [http 2.2.16-6+squeeze10 multiuser MPM for Apache 2.2
ii  libgeo-ipfree-perl    1.101650-1         module to look up the country of a
pn  libnet-dns-perl       <none>             (no description available)
pn  libnet-ip-perl        <none>             (no description available)
pn  liburi-perl           <none>             (no description available)

-- Configuration Files:
/etc/awstats/awstats.conf [Errno 2] No such file or directory: 
u'/etc/awstats/awstats.conf'
/etc/awstats/awstats.conf.local [Errno 2] No such file or directory: 
u'/etc/awstats/awstats.conf.local'

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to