how to configure DA to keep 7 days' worth of log lines in all of our log files?

I'm also interested in the fix for this problem, because as a user I'd like to be able to have decent stats but more important to me is that I have decent access to logs. Many problems with the logs (such as not updating at all sometimes) and stats (right now my subdomain stats are frozen despite the logs 'working'{daily... ick}) on several DA hosts are prompting me to implement php+mysql-based a logging system into my custom site script, but that really isn't an option for a lot of people.
 
Last edited:
Amazingly enough, my Admin Settings doesn't have "Max Log size" at all.

I do have "keep no. of logs" but no "Max Log size"
 
I wonder if somebody from DA could make a summary of the current situation of this issue..
 
Hello,

Currently logs are rotated daily. The admin can specify how many rotations he wishes to keep with the "Keep Number of Apache Log Backups" option. There is no "rotate at size" option for the DA apache logs.

If you wish to change the behavior and move to your own setup, that's fine. You can either change the location of the logs, or also add your own 2nd CustomLog entry. To modify the VirtualHost entries for your Users, use this guide: http://help.directadmin.com/item.php?id=2
There will be 4 virtual_host*.conf templates for your version of apache (virtual_host, virtual_host_secure, virtual_host_sub, virtual_host_secure_sub). Note that if you add extra CustomLog entires, you are responsible for rotating them.

John
 
Then I'm having a problem.

All my access logs are only like kept 1 day ago.
 
DirectAdmin Support said:

The logs directly in /var/log/httpd are controlled by logrotate.
The logs in /var/log/httpd/domains are controlled by DA.

So... I have a log in /var/log/httpd/domains that is exceeding 2GB daily and causing Apache to malfunction (very high traffic site). How can I get this file to be rotated more often?

I've looked at this post: http://www.directadmin.com/forum/showthread.php?s=&postid=78741#post78741

but I don't understand if the tally command referred to will also rotate this log.

Alternately, how can I get logrotate to deal with this particular file? I looked at the custom httpd.conf, and I can see where it sets the custom log directory, but it also says that any changes will be overwritten, so how do you change that? If I put that file in the directory above, would logrotate deal with it? And then how would i get logrotate to do it's thing more than once a day... would it have to be hourly? Or if i omit that line would it just not create that log?

Or any other suggestions for keeping the file from getting so big that it kills Apache.

BTW... I nuked webalizer long ago (webalizer = 0 in directadmin.conf) because it was running 24/7, but I didn't add anything about rotate in directadmin.conf, I'm assuming it defaults to true.

OK, any thoughts are greatly appreciated.
Rebecca
 
Back
Top