Koozali.org: home of the SME Server

logrotate a nonstandard log

Offline magwm

  • *
  • 159
  • +0/-0
  • SmeLover
    • Gadis Tourist Service Italia SRL
logrotate a nonstandard log
« 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 )

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
MagWm

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: logrotate a nonstandard log
« Reply #1 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

Offline magwm

  • *
  • 159
  • +0/-0
  • SmeLover
    • Gadis Tourist Service Italia SRL
Re: logrotate a nonstandard log
« Reply #2 on: January 11, 2010, 06:48:17 PM »
thanks Stefano, much obliged...   :)
MagWm

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: logrotate a nonstandard log
« Reply #3 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 ;-)