Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, A few hours ago I got a out of space warning message. After some research I found that kern.log was some 38 gb in size and ufw.log was also ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    26

    Huge Log files


    Hello,

    A few hours ago I got a out of space warning message.
    After some research I found that kern.log was some 38 gb in size and ufw.log was also quite big some 6.2 gb.

    there were also some .1 and .gz files that I deleted seeing that they were rather old.

    I fixed the out of space issues for now but wondering ...

    are there any settings to limit the size of these and any utilities that will decode the log file entries into something a intermediate novice user can understand and possibly fix?

    Also what kind of data is being stored in these log files?

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Hi,

    The logrotate program will do that for you. It should already be installed, but perhaps it isn't, or it is misconfigured. It is run by crond, so that needs to be running (again, probably is, but you never know).

    Read up on logrotate in this article and post back here if you have any troubles.

    Edit: and of course, read the man page: man logrotate
    Last edited by atreyu; 10-26-2012 at 04:39 AM. Reason: man page

  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Posts
    11
    I am running LMDE and this problem has happened several times. The previous entry is absolutely correct but as you have older files it suggests that logrotate is working. You can delete all the log files if necessary as on reboot new files will be created.

    Could you please give us the output from the terminal by entering lspci.

    By default in LMDE logrotate is set to weekly and should normally be fine.

    If you right click the var folder and open it as administrator, then double click the log file you wish to open, then gedit or pluma should open and list the entries.

    Alternatively you can open a terminal and enter sudo pluma/var/log/kern.log

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •