This is the mail archive of the
cygwin-talk
mailing list for the cygwin project.
Re: log rotation : Cygwin?
- From: "Bryan D. Thomas" <cinder_bdt at yahoo dot com>
- To: cygwin-talk at cygwin dot com
- Date: Fri, 14 Apr 2006 07:09:04 -0700
- Subject: Re: log rotation : Cygwin?
- References: <20060402024258.34502.qmail@web31311.mail.mud.yahoo.com>
- Reply-to: The Cygwin-Talk Malingering List <cygwin-talk at cygwin dot com>
> around 10 MiB per day of raw sshd.log
> archived by day, week, month.
> I'm hoping someone reading this has tackled the log
> rotation problem before and might have some advice.
I tried and abandoned the file destination template feature of syslog-ng to
create directories and files named by year,month,day. I have several
downstream tools which expect to be looking at sshd.log; adapting them to
look at a different filename is a chore I wish to avoid for now.
I ended up compromising by writing my own cron job to stop the services with
cygrunsrv, move and compress the log, then start the services. I hope this
won't break too often.