CustomLog not rotating

mattlovell

Verified User
Joined
Aug 21, 2005
Messages
23
Hi have been struggling with this for litteraly years, and want to sort it.
Customers logs all eventually excede the 2gb limit.
This doesn't happen with any of my other servers with DA
even same spec servers in same data centre.
All I can think of is that with this one - data centre installed a whole lot of stuff first then had to deinstall it for a clean da install (this was 24 months or more ago! - i forget a bit)
If I understand correctly DA controls these logs
/var/log/httpd/domains/xxx.co.uk

Any way to get them to work properly - instead of manually deleting them every couple of months?

Many thanks
Matt
 
thanks for that
looking at my config file and my status
I can see that no da admin logs are rotating

why might this be?

is there any custom code - ideally when new domains are added da will rotate them too.

am i missing a config - logrotate.conf below.

so if I'm being dumb, but I am sure there is a simple way instead of me coding.
thanks
matt

# 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.
 
Back
Top