revealed
Guru
Hallo!
Und zwar folgendes. Ich habe mir awstats konfiguriert und ich möchte mir, weil mein Rechner seit 2007 läuft. Statistik auch aus 2007 und dem was davor war anzeigen lassen.
Bis jetzt logt awstats seit ein paar Tagen, das was seit dem Installationstag von awstats passiert ist.
Soweit so gut. Es funktioniert immerhin.
Ich habe mir aber gedacht eben die alten Logs auch einlesen zu lassen. Nur weiss ich nicht wie.
Problem 1:
Alle Logdateien der vorigen Monate liegen im ".bz2" Format vor.
Problem 2:
LogFile="/var/log/apache2/access_log"
Was passiert wenn es einen Logrotate gibt? Bleibt die Statistik vom Vormonat erhalten?
Problem 3:
In der Configdate steht:
Namen der Logdateien wie folgt:
Kann mir bitte jemand helfen, dass ich alle statistik da reinbekomme?
Edit:
Was ich versucht habe:
Und wenn ich dann Ausführe:
Dann sagt er:
Warum nimmt er die alten Records nicht rein?
Vielen Dank!
Gruß,
R
Und zwar folgendes. Ich habe mir awstats konfiguriert und ich möchte mir, weil mein Rechner seit 2007 läuft. Statistik auch aus 2007 und dem was davor war anzeigen lassen.
Bis jetzt logt awstats seit ein paar Tagen, das was seit dem Installationstag von awstats passiert ist.
Soweit so gut. Es funktioniert immerhin.
Ich habe mir aber gedacht eben die alten Logs auch einlesen zu lassen. Nur weiss ich nicht wie.
Problem 1:
Alle Logdateien der vorigen Monate liegen im ".bz2" Format vor.
Problem 2:
LogFile="/var/log/apache2/access_log"
Was passiert wenn es einen Logrotate gibt? Bleibt die Statistik vom Vormonat erhalten?
Problem 3:
In der Configdate steht:
Damit habe ich herumprobiert, jedoch ohne erfolg!# You can also use a pipe if log file come from a pipe :
# Example: "gzip -d </var/log/apache/access.log.gz |"
# If there are several log files from load balancing servers :
# Example: "/pathtotools/logresolvemerge.pl *.log |"
#
Namen der Logdateien wie folgt:
Code:
access_log
access_log-20071228.bz2
...
Kann mir bitte jemand helfen, dass ich alle statistik da reinbekomme?
Edit:
Was ich versucht habe:
Code:
LogFile="/usr/share/doc/packages/awstats/tools/logresolvemerge.pl /var/log/apache2/* |"
Code:
/usr/share/doc/packages/awstats/tools/awstats_updateall.pl now -awstatsprog=/srv/www/cgi-bin/awstats.pl
Code:
Running '"/srv/www/cgi-bin/awstats.pl" -update -config=localhost -configdir="/etc/awstats"' to update configocalhost
Create/Update database for config "/etc/awstats/awstats.localhost.conf" by AWStats version 6.7 (build 1.892)
From data in log file "/usr/share/doc/packages/awstats/tools/logresolvemerge.pl /var/log/apache2/* |"...
Phase 1 : First bypass old records, searching new record...
Direct access to last remembered record has fallen on another record.
So searching new records from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 0
Parsed lines in file: 1048139
Found 4 dropped records,
Found 48121 corrupted records,
Found 999480 old records,
Found 534 new qualified records.
Vielen Dank!
Gruß,
R