LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   MySQL logging server how can i 'log rotate' all the data (https://www.linuxquestions.org/questions/linux-newbie-8/mysql-logging-server-how-can-i-log-rotate-all-the-data-625654/)

helptonewbie 03-04-2008 10:48 AM

MySQL logging server how can i 'log rotate' all the data
 
Hi All,
I'm looking for a decent method of rotating data in a MySQL table that has log files piped into it from a few different servers. Basically one of the most important things is that the table or MySQL doesn't stop running so that the servers logging to it are always able to connect and send any log message to the MySQL database, 24/7. I'd like to be able to archive off the logs for a date and also every so often run a clean down of the table. My thoughts were a mysqldump with a where clause in it to specify the date range, and then to clean out the table every so often to truncate the table. Basically i need to make sure i don't loose any data at the times of this happening so does this sound like a good method or are there other methods that may be better.

Cheers,
Mark

helptonewbie 03-31-2008 04:48 AM

no ideas anyone.. this has me stumped?


All times are GMT -5. The time now is 03:55 PM.