R rszkutak Verified User Joined Dec 22, 2003 Messages 173 Location Scottsdale, AZ & Clam Gulch, AK Feb 8, 2007 #1 does anyone know how to increse the amount of days that the log files stay on the system to more than 5 days ??? I have customers griping about this, and their making my life difficult. thoughts ? R
does anyone know how to increse the amount of days that the log files stay on the system to more than 5 days ??? I have customers griping about this, and their making my life difficult. thoughts ? R
smtalk Administrator Staff member Joined Aug 22, 2006 Messages 9,089 Location LT, EU Feb 9, 2007 #2 Just edit logrotate
R rszkutak Verified User Joined Dec 22, 2003 Messages 173 Location Scottsdale, AZ & Clam Gulch, AK Feb 9, 2007 #3 any thoughts as to where i can find logrotate ?
smtalk Administrator Staff member Joined Aug 22, 2006 Messages 9,089 Location LT, EU Feb 9, 2007 #4 /etc/logrotate.conf - configuration file /etc/logrotate.d - the directory you'll need, check apache file in this directory.
/etc/logrotate.conf - configuration file /etc/logrotate.d - the directory you'll need, check apache file in this directory.
R rszkutak Verified User Joined Dec 22, 2003 Messages 173 Location Scottsdale, AZ & Clam Gulch, AK Feb 9, 2007 #5 Here is the logrotate file... looks like 4 weeks to me, bu DA doesnt keep them where the cusotmer can see them for 4 weeks. # see "man logrotate" for details # rotate log files weekly weekly # keep 4 weeks worth of backlogs rotate 4 # create new (empty) log files after rotating old ones create # uncomment this if you want your log files compressed #compress # RPM packages drop log rotation information into this directory include /etc/logrotate.d # no packages own wtmp -- we'll rotate them here /var/log/wtmp { monthly create 0664 root utmp rotate 1 } # system-specific logs may be also be configured here. Here's the apache file... /var/log/httpd/access_log /var/log/httpd/agent_log /var/log/httpd/error_log /var/log/httpd/referer_log { missingok sharedscripts postrotate /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true endscript } Thoughts ? Rob
Here is the logrotate file... looks like 4 weeks to me, bu DA doesnt keep them where the cusotmer can see them for 4 weeks. # see "man logrotate" for details # rotate log files weekly weekly # keep 4 weeks worth of backlogs rotate 4 # create new (empty) log files after rotating old ones create # uncomment this if you want your log files compressed #compress # RPM packages drop log rotation information into this directory include /etc/logrotate.d # no packages own wtmp -- we'll rotate them here /var/log/wtmp { monthly create 0664 root utmp rotate 1 } # system-specific logs may be also be configured here. Here's the apache file... /var/log/httpd/access_log /var/log/httpd/agent_log /var/log/httpd/error_log /var/log/httpd/referer_log { missingok sharedscripts postrotate /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true endscript } Thoughts ? Rob
DirectAdmin Support Administrator Staff member Joined Feb 27, 2003 Messages 8,139 Sep 26, 2007 #7 Hello, By the 5 days, I'm assuming you're referring to the backed up apache tar.gz log files in /home/user/domains/domain.com/logs. To increase the number from 5 to something higher, go to: Admin Level -> Admin Settings -> Keep Number of Apache Log Backups. Increase that value to a higher number. John
Hello, By the 5 days, I'm assuming you're referring to the backed up apache tar.gz log files in /home/user/domains/domain.com/logs. To increase the number from 5 to something higher, go to: Admin Level -> Admin Settings -> Keep Number of Apache Log Backups. Increase that value to a higher number. John