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

Re: I worked it out :)



syslogd-listfiles uses the wildcard to decide if the log is rotated
weekly or daily.

syslogd-listfiles will return debug as rotated weekly.
*.=debug;\
        auth,authpriv.none;\
        news.none;mail.none     -/var/log/debug


but if you change entry to below, syslogd-listfiles will reuturn debug
as rotated dialy.
*.*;\
        auth,authpriv.none;\
        news.none;mail.none     -/var/log/debug


Since you don't want to log everything in debug,
therefore, you need to either modify the syslogd-listfiles to return the
files you want, or just modify the crontab to rotate the logs you want
without using syslogd-listfiles.


Shao.

Marc-Adrian Napoli [marcadrian@cia.com.au] wrote:
> Hi all,
> 
> I have overcome my syslog problem, now i have only one query.
> 
> The "sysklogd" script in my /etc/cron.daily directory uses the
> "syslogd-listfiles" command to list what log files it should log.
> 
> However, this command brings up nothing.
> 
> "syslogd-listfiles --weekly" brings up all my log files.
> 
> Is there anyway to specify that a log file is to be a daily-rotated one
> rather than a weekly-rotated one?
> 
> Any help would be most appreciated!
> 
> Regards,
> 
> Marc-Adrian Napoli
> Connect Infobahn Australia
> +61 2 92811750
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 
> 

-- 
____________________________________________________________________________
Shao Zhang - Running Debian 2.1  ___ _               _____
Department of Communications    / __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _ 
University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` |
Sydney, Australia               |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
Email: shao@cia.com.au                                                  |___/ 
_____________________________________________________________________________


Reply to: