[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: logrotate help



Hello

ross74@optusnet.com.au (<ross74@optusnet.com.au>) wrote:

> Pretty standard install of Debian, I haven't changed any logrotate
> settings but it seems to be working just fine..
> All log files in /var/log/* are being rotated and compressed so I'm
> happy with that. eg.
> /var/log/syslog
> /var/log/syslog.0
> /var/log/syslog.1.gz
> /var/log/syslog.2.gz
> and so on..
> 
> One thing I have noticed though is all the websites I have created, I
> put their logs in this format:
> /var/log/web1/*
> /var/log/web2/*
> and so on,
> Those log files are not being rotated and are getting quite large.
> 
> In what area of logrotate do I need to add these, do I have to add
> them all seperately ?

You can use wild cards in the logrotate configuration. Take a look at
the files in /etc/logrotate.d and the logrotate man page.

best regards
        Andreas Janssen

-- 
Andreas Janssen
andreas.janssen@bigfoot.com
PGP-Key-ID: 0xDC801674
Registered Linux User #267976



Reply to: