Unix Technical Forum

Rotate Logs without rotating all logs

This is a discussion on Rotate Logs without rotating all logs within the MySQL forums, part of the Database Server Software category; --> Is it possible to rotate the slow query log without rotating other log files like the binary log file?...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 11:29 AM
ryanmhuc@yahoo.com
 
Posts: n/a
Default Rotate Logs without rotating all logs

Is it possible to rotate the slow query log without rotating other log
files like the binary log file?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 11:29 AM
beberlei
 
Posts: n/a
Default Re: Rotate Logs without rotating all logs

On 28 Okt., 05:30, "ryanm...@yahoo.com" <ryanm...@yahoo.com> wrote:
> Is it possible to rotate the slow query log without rotating other log
> files like the binary log file?


why not write a simple bash script, that "rotates" every slow-
query.log if its larger than for example 32M and is executed by
cronjob every hour. you could even write it in PHP, PERL, RUBY or
whatever language you like the most.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:05 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com