LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-13-2018, 09:27 AM   #1
volcblack
LQ Newbie
 
Registered: Apr 2018
Posts: 9

Rep: Reputation: Disabled
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
 
Old 06-13-2018, 10:17 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,009

Rep: Reputation: 901Reputation: 901Reputation: 901Reputation: 901Reputation: 901Reputation: 901Reputation: 901Reputation: 901
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.

Last edited by AwesomeMachine; 06-13-2018 at 10:21 AM.
 
Old 06-13-2018, 11:10 AM   #3
volcblack
LQ Newbie
 
Registered: Apr 2018
Posts: 9

Original Poster
Rep: Reputation: Disabled
kern.log file takes too much space

and you are right, you really helped me thanks a lot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] kindly explain the columns under /var/log/kern.log savleen Linux - Newbie 8 08-22-2017 01:20 PM
[SOLVED] libperl.so.5.18.2 Error log in kern.log file mahi_nix Ubuntu 2 06-18-2014 07:12 AM
kernel log format in /var/log/kern.log sinu_nayak2001 Linux - Newbie 2 10-07-2009 08:34 AM
/var/log/kern.log (and others) filling up! tromboneman Linux - General 4 02-01-2009 04:01 PM
/var/log/kern.log message dimkal Linux - Hardware 1 05-08-2004 06:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration