Tag - Logrotate

Automating MongoDB Log Rotation

Automating MongoDB Log Rotation

In this blog post, we will look at how to do MongoDB® log rotation in the right—and simplest—way.
Log writing is important for any application to track history. But when the log file size grows larger, it can cause disk space issues. For database servers especially, it may cause performance issues as the database needs to write […]

Read more

Log rotate and the (deleted) MySQL log file mystery

Did your logging stop working after you set up logrotate? Then this post might be for you.
Archive your log files!
Some time ago, Peter Boros wrote about Rotating MySQL Slow Logs safely, explaining the steps of a “best practice” log rotate/archive. This post will add more info about the topic.
When running logrotate for MySQL (after […]

Read more

Rotating MySQL Slow Logs Safely

mysql

This blog post is part two of two. Like part one, published Wednesday, this is a cross-post from long_query_time set to 0. Here are a some lessons we learned when logging a high volume of queries to the slow log.
Do not use copytruncate
bug 65481 explains that the HUP signal also flushes tables in addition […]

Read more