LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   kern.log file takes too much space (https://www.linuxquestions.org/questions/linux-newbie-8/kern-log-file-takes-too-much-space-4175631856/)

volcblack 06-13-2018 09:27 AM

kern.log file takes too much space
 
It is possible to gzip or bzip the var/log/kern.log
File? cuase it is too big and I would like to release space

AwesomeMachine 06-13-2018 10:17 AM

Have a look at kern.log. Some renegade app is probably filling it up. You can either adjust the app to log at a lower level, adjust rsyslog.conf to log kernel messages at a lower level, or append 'loglevel=2' to the linux line in grub. You'd have to edit '/etc/default/grub' and run 'update-grub'.

You should also look at /var/log to see if there are rotated kern.log.2.gz, etc. If logrotate isn't working, the logs will grow forever. You can check the system mail for any errors with logrotate.

volcblack 06-13-2018 11:10 AM

kern.log file takes too much space
 
and you are right, you really helped me thanks a lot


All times are GMT -5. The time now is 03:35 PM.