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
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