Apache Log Rotation

RinCA

Verified User
Joined
Jan 8, 2014
Messages
21
So I've got several sub domains for a particular domain and they log correctly under /var/log/httpd/domains

But when it comes time for the log rotate, some of the sub domain logs end up where they should and others disappear.

I'd like to have a closer look at the log rotate procedure and see where it's trying to move the log files to.

I have the sub domains setup all under the /home/user/domains/sub-domain.domain.com for each one, with the accompanying public_html, logs, etc directories with the correct permissions.

The pages are served up correctly with that directory structure, so I'm just trying to debug why some of the sub domains log files are rotated correctly and others aren't.

Thank you.
 
Hello,

If the subdomains are created as full domains, then it's just a normal log rotation issue... but still an issue if it's not working.

However, I believe DA skips rotation if the logs are empty... which is my only guess at the moment.

John
 
Hi John,

They aren't empty... wish there was an option to "DEBUG" or get "VERBOSE" logs of what's going on during the log rotation process.
 
1) CHeck /var/log/directadmin/errortaskq.log

2) For output (there will be a lot):
Code:
cd /usr/local/directadmin
echo "action=tally&value=all" >> data/task.queue
./dataskq d3000 > debug.log 2>&1
where we dump it to a debug.log rather than trying to scroll up in the window.

John
 
Back
Top