ok guys,
Im running Centos 4.6 Final
latest versions of apache, mysql etc etc
Basically, I have several websites on there and one of them is a busy forum and it generates big log files in not that long of a timeperiod.
I set it up about 8 months ago so that logrotate was rotating the logs of my virtual hosts and pruning them at a set size limit, then renaming them as it went along so they were log 1, log 2, log 3 and so on.
This was working great after quite a bit of testing and tweaking but I found out tonight that for some reason this has stopped working and one of the logs is now over 5GB!
I would delete it and start over but I need the information in it for awstats so thats not really an option. Which brings me to my next point!!
I installed Awstats maybe 3 months ago and got it working, but Im not sure if that is what has broken my logrotate script?
Quote:
Originally Posted by my logrorate.d for my virtual hosts
/var/log/httpd/*/.accesslog /var/log/httpd/*/.errorlog /var/log/httpd/*/.sslerrorlog /var/log/httpd/*/.sslaccesslog {
missingok
notifempty
errors
me@mydomain.com
sharedscripts
prerotate
/etc/genstat.sh
endscript
postrotate
/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
endscript
}
Now I know this DID work perfectly!!
but I would appreciate some help in the best way to trouble shoot the problem.
I have restarted Cron.d
and also forced logrotate to run, and go thits
Quote:
error: httpdvirtual:4 unexpected text
Create/Update database for config "/etc/awstats/awstats.site1.conf" by AW Stats version 6.6 (build 1.887)
From data in log file "/var/log/httpd/site1/site1accesslog" ...
Phase 1 : First bypass old records, searching new record...
Direct access after last parsed record (after line 7947985)
Jumped lines in file: 7947985
Found 7947985 already parsed records.
Parsed lines in file: 5351
Found 243 dropped records,
Found 0 corrupted records,
Found 0 old records,
Found 5108 new qualified records.
Create/Update database for config "/etc/awstats/awstats.site2.conf" by AWStats version 6.6 (build 1.887)
From data in log file "/var/log/httpd/site2/site2.accesslog"...
Phase 1 : First bypass old records, searching new record...
Direct access after last parsed record (after line 7556)
Jumped lines in file: 7556
Found 7556 already parsed records.
Parsed lines in file: 0
Found 0 dropped records,
Found 0 corrupted records,
Found 0 old records,
Found 0 new qualified records.
Create/Update database for config "/etc/awstats/awstats.site3.conf" by AWSta ts version 6.6 (build 1.887)
From data in log file "/var/log/httpd/site3/site3.accesslog"...
Phase 1 : First bypass old records, searching new record...
Direct access after last parsed record (after line 444693)
Jumped lines in file: 444693
Found 444693 already parsed records.
Parsed lines in file: 94
Found 0 dropped records,
Found 0 corrupted records,
Found 0 old records,
Found 94 new qualified records.
Create/Update database for config "/etc/awstats/awstats.localhost.localdomain.co nf" by AWStats version 6.6 (build 1.887)
From data in log file "/var/log/httpd/access_log"...
Phase 1 : First bypass old records, searching new record...
Direct access after last parsed record (after line 956)
Jumped lines in file: 956
Found 956 already parsed records.
Parsed lines in file: 0
Found 0 dropped records,
Found 0 corrupted records,
Found 0 old records,
Found 0 new qualified records.
and so on
Site1 is the one giving me trouble