Ubuntu: large syslog and kern.log files -
logging ubuntu machine, warning running out of disk space. tracing back, find syslogs, kern.log(s) eating 1tb disk.
-rw-r----- 1 syslog adm 240g feb 25 14:22 kern.log -rw-r----- 1 syslog adm 516g feb 21 07:59 kern.log.1 -rw-r----- 1 syslog adm 1.1k feb 15 07:39 kern.log.2.gz -rw-r----- 1 syslog adm 19k feb 7 07:56 kern.log.3.gz -rw-r----- 1 syslog adm 37k feb 1 07:45 kern.log.4.gz -rw-r----- 1 syslog adm 23g feb 25 14:52 syslog -rw-r----- 1 syslog adm 25g feb 25 08:11 syslog.1 -rw-r----- 1 syslog adm 1.6g feb 24 07:49 syslog.2.gz -rw-r----- 1 syslog adm 1.7g feb 23 08:18 syslog.3.gz -rw-r----- 1 syslog adm 3.4g feb 22 08:19 syslog.4.gz -rw-r----- 1 syslog adm 3.6g feb 21 07:59 syslog.5.gz -rw-r----- 1 syslog adm 6.9g feb 20 07:38 syslog.6.gz -rw-r----- 1 syslog adm 7.3g feb 19 07:36 syslog.7.gz
from snippet above, can find kern.log , kern.log.1 eating 80% of 1tb disk. can space deleting files, think won't solve problem.
does have idea on issue might be? saw can logging level by:
cat /proc/sys/kernel/printk
and get
4 4 1 7
have checked content of files? there's going on server causing events generated. resolve whatever issue causing that, , logs should return normal size.
Comments
Post a Comment