Not the answer you need?
Register and ask your own question!

Rotation of query log

piotrpiotr EntrantCurrent User Role Beginner
Hi!

After enabling pt-agent daemon our server is producing large amount of slow query logs. Unfortunately after sending data to Percona Cloud servers, logs are rotated with current timestamp and not deleted. This is quite big problem as logs are stored on SSD drive. I wonder why there's no option in pt-agent to delete unneeded logs?

I could write cron script to delete old logs, but there's another question if it's safe to delete all rotated logs or maybe the latest file may be still processed by some tool.

Thanks,
Piotr

Comments

Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.