• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

How do I setup log rotation for busy site - logs > 1Gb

W

WebDork

Guest
Hi all,

Im confused :(

I have a busy forum where logs are set to rotate daily.

This is creating log files larger than 1Gb and just about kills the server when statistics / webalizer runs.

What I have done is changed it to "by size" and set it to 100Mb.

I have 0 files also selected.

Now the question I have is that I presume that once the logs reach 100Mb its deleted ? and starts again ? or as new lines are added are old lines dropped off ?

Next question is how will my webstats update. I presume stats are run only once a day via the cron so will only run on the 100Mb file ? Therefore I will only be logging 10% of my traffic ? Is this correct logic ?

What I want to be able to do is limit my log to 100Mb, but once it hits that limit it is then analysed, stats updated, and the log deleted.

Should I have the stats cron run every hour ? Will that automatically delete the log every time it is run and stop it from growing out of control ?

Another way might be to have logs limited to 100Mb and set maximum number of log files to say 20 - does the stats program then check all these extra ones to make sure all the stats are counted ?

Help :)
 
Another question.

If the log rotation time is daily, and yet the cron is say daily, whats the chances that the log rotation clears the log before the statistics cron gets a chance to do its job ? or is the log cleared only AFTER the statistics has been run ?
 
Back
Top