Koozali.org: home of the SME Server

Contribs.org Forums => General Discussion => Topic started by: magwm on January 11, 2010, 06:24:12 PM

Title: logrotate a nonstandard log
Post by: magwm on January 11, 2010, 06:24:12 PM
Hello, I would like to ask for help on this item:

I have an extra log running: /var/log/windows.log

which receives logs from facility local4 of syslog  (described the process in http://forums.contribs.org/index.php/topic,45329.msg220289.html#msg220289 (http://forums.contribs.org/index.php/topic,45329.msg220289.html#msg220289) )

but now I want to logrotate this logfile, like rotating it every month.

I cannot find any references on how to configure this.

Where can I start ?

thanks a lot,

Michel - Gadis
Title: Re: logrotate a nonstandard log
Post by: Stefano on January 11, 2010, 06:38:27 PM
Hi Michel

all you have to do is create a file in /etc/logrotate.d dir

you can use radiusd as an example..
for any other question you should read

Code: [Select]
man logrotate

HTH
Title: Re: logrotate a nonstandard log
Post by: magwm on January 11, 2010, 06:48:17 PM
thanks Stefano, much obliged...   :)
Title: Re: logrotate a nonstandard log
Post by: Stefano on January 11, 2010, 07:28:47 PM
:-)

I suggest you to create a custom template for it, so it will be in your backup ;-)