Answer the question
In order to leave comments, you need to log in
MySQL (Percona XtreDB Cluster) - how to properly rotate logs?
Actually, subject. OS Debian 9
I would like to create a new one when reaching /var/log/mysqld.log, for example, 100mb, and shove the old one into gz and store 10 files in total.
Basically, it should look something like
/var/mysql/mysqld.log {
compress
create 660 mysql mysql
size 100M
missingok
notifempty
rotate 10
}
But surely something needs to be done in postrotate. Please share your methods / config examples.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question