caribk
Verified User
Implementing an off-site analytics solution for a DA web server w Apache 1.3.34
Somewhat confused about how the log rotation works and log cleanup..
From what I can tell, logs from /var/log/httpd/domains get rotated into /home/user/domains/domain.com/logs/ nightly, then these archives get removed monthly.?
What would be the best practice for copying logs to the off-site location, i.e access logs from /var/log/httpd/domains/ *before* rotation or from the backup directory after rotation?
Also regarding the backup logs, if I were to scp daily access_log files to off-site as access_log.yyyy.mm.dd but still wanted to keep the rotated logs for backup, how does this cleanup work? All old backups from last month removed on 1st of next month?
(Apologize if some of these are Q's I should have answered myself. Not at a location where I can SSH into the DA box and check cron's at time of writing..)
Somewhat confused about how the log rotation works and log cleanup..
From what I can tell, logs from /var/log/httpd/domains get rotated into /home/user/domains/domain.com/logs/ nightly, then these archives get removed monthly.?
What would be the best practice for copying logs to the off-site location, i.e access logs from /var/log/httpd/domains/ *before* rotation or from the backup directory after rotation?
Also regarding the backup logs, if I were to scp daily access_log files to off-site as access_log.yyyy.mm.dd but still wanted to keep the rotated logs for backup, how does this cleanup work? All old backups from last month removed on 1st of next month?
(Apologize if some of these are Q's I should have answered myself. Not at a location where I can SSH into the DA box and check cron's at time of writing..)