How do I logrotate

zimmo

Verified User
Joined
Apr 29, 2005
Messages
8
Hi, Still new to directadmin. I need to be able to rotate my log files on a monthly basis, could someone please tell me how i do this? Also, how I access the files that are rotated, as I know they are kept for 4 rotates.

On my old server I just used to have a cron file and this worked fine. Also, can you combine logs.

Example: We have two domain names and they both point to the same website, not a domain pointer as the mx records were changed. So how or can we do this.

Thanks

Barry

PS: if someone can tell me how I do this via the admin panel rather than via ssh.
 
As per the latest DA release, logs are rotated daily. Hopefully they will add an option to specify week and month. I prefer daily myself.
 
Could some admin from DA please let me know about this.

We need to have our log files rotated monthly and compressed so that we have the last 4 months of log files.

So the currently log file rotates on a monthly basis and then gzipped the old one up. Our old hosting company used to do this via a cron job. Could you let me know if this can be done via direct admin.

Thanks
Barry
 
The new DA system for logs rotates them daily and compresses them. The stats are them updated from the compressed logs. You can sepcify how many logs you want to keep. So if you want 4 months, you could do set to store 122 logs in the admin settings.
 
This new "feature" is really more than a pain than benefit. The least they could have done was setup logrotate to do the actual rotating, that way it was configurable. However, I am not sure if DirectAdmin has special routines that it does to these compressed log files before it has webalizer parse them since the problem before was to many to big log files for webalizer to handle at one time. (At least of the dns cache stuff)
 
Back
Top