List:General Discussion« Previous MessageNext Message »
From:gerald_clark Date:October 12 2005 3:07pm
Subject:Re: How to use logrotate to manage binary logs
View as plain text  
Kristen G. Thorson wrote:

> Hi all,
>
> This may be a simple solution that I'm just not seeing.  logrotate has 
> trouble with binlogs since the extension keeps changing, so instead of 
> actually rotating logs out, I just get a dir filled with
>
> binlog.001.1
> binlog.002.1
> binlog.003.1
> binlog.004.1
> binlog.005.1
> binlog.006.1
>
> and on to inifinity.  The manual says "If you supply an extension in 
> the log name (for example, |--log-bin=/|file_name.extension|/|), the 
> extension is silently removed and ignored," so it appears I'm stuck.  
> Does anyone have some pointer for me to set up auto-rotation?  I'm 
> somehow not finding much info on this.
>
>
> kgt
>
>
Don't do that. You will break replication.
Set up a cron job to flush logs instead.

Thread
How to use logrotate to manage binary logsKristen G. Thorson12 Oct
  • Re: How to use logrotate to manage binary logsgerald_clark12 Oct