- Empty tmp log file by
sudo truncate -s0 /var/log/btmp.1
2. Check file size by
sudo du -h --max-depth=1 -x
3. Delete mysql log
- Expire log file in 3 days : Go to /etc/mysql/mysql.conf.d/mysqld.cnf and set the following parameter and restart mysql
binlog_expire_logs_seconds = 259200
Purge log files
4.