100% uptime with cPanel while log rotation and processing

desiguru

Well-Known Member
Aug 27, 2008
73
0
56
When I server process logs and/or rotates logs it goes down for four - five minutes. Is there a way I can process this logs without experiencing this down time?
 

Solokron

Well-Known Member
Aug 8, 2003
851
1
168
Seattle
cPanel Access Level
DataCenter Provider
Spread rotating logs out, don't process some, upgrade server RAM, etc.
 

Spiral

BANNED
Jun 24, 2005
2,020
8
193
If you have 8 GB and going down at log rotation, you got me really curious about your traffic patterns and server configuration as something is definitely not kosher there.
 

UNIXy

Well-Known Member
Verifed Vendor
Sep 21, 2009
75
0
56
Houston, Texas, USA
cPanel Access Level
DataCenter Provider
Logrotate is a mature unix utility in the sense that it's highly customizable. You could for example configure it to rotate the logs daily so the size of the logs don't get out of control and take longer to complete (see man logrotate). Or better, you could set the variable minsize to a reasonable number so the logs get rotated as soon as they reach X size in bytes. Check out logrotate.conf under /etc/.

A mixture of the above settings can greatly reduce the perceived down time.

Regards
Joe / UNIXY
 

charliesxia

Member
Aug 3, 2006
18
1
153
I have a large logfles. I set the log files to null .
suggest to add option to cancel the log files in system and apache.