> Thanks for your reply.
> Can you please tell me, How should I change te logrotate.conf file.

Man logrotate

OK Seriously...

Here is a logrotate.conf

# $Header:
/home/cvsroot/gentoo-x86/app-admin/logrotate/files/logrotate.conf,v 1.1
2003/05/14 03:31:18 msterret Exp $
#
# Logrotate default configuration file for Gentoo Linux
#
# See "man logrotate" for details

# rotate log files weekly
#weekly
daily

# 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

# packages can drop log rotation information into this directory
include /etc/logrotate.d

notifempty
nomail
noolddir

# no packages own lastlog or 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.

My config also uses a syslog-ng file in /etc/logrotate.d/, it looks like
this :

# $Header:
/var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.logrotate,v
1.2 2004/07/18 02:25:02 dragonheart Exp $
#
# Syslog-ng logrotate snippet for Gentoo Linux
# contributed by Michael Sterrett
#

/var/log/cron.log /var/log/mail.log
/var/log/mail.warn /var/log/amavis.log {
    sharedscripts
    postrotate
        /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
    endscript
}

As you can see I am not rotating clam logs at the moment but if I wanted
to then I would add in the log file in the list...

Hope that helps you.

Mal
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to