Results 1 to 3 of 3

Thread: Disk space used by logs

  1. #1
    Join Date
    Aug 2012

    Disk space used by logs

    Hey, while I was just working on fixing a crashed hard disk, I noticed a message saying that my filesystem "/" has only 93MB remaining. While I was shocked because I had around 10GB of free space when I started off that day. On closer inspection, I found that my "/var/log/syslog" had become 5.8GB and "/var/log/kern.log" was 5.8GB; and correspondingly "sys.log.1" was 1.1GB and "kern.log.1" 1.2GB.

    Is it normal to have such huge logs? I had installed 12.04 (and still have 12.04) in February 2014.

    And it seems to have the most recent modification date, 9 June 2014; so I think that it is the reason of my low space. Is there any way to free up my space? I think just deleting these logs will cause trouble. Nothing else seemed out of the ordinary.

  2. #2
    Join Date
    Apr 2011
    Mystletainn Kick!

    Re: Disk space used by logs

    If you view the kern.log file is there anything odd?
    I would look toward the end of it for any repeating lines, perhaps something is stuck and it's repeating the same line(s) over and over again.
    (5.8GB is pretty big, so please do not try to post the file here, maybe pastebinit, or small snippets from the file, but not the whole thing, please.)
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful

  3. #3
    Join Date
    Oct 2009
    Ubuntu 16.04 Xenial Xerus

    Re: Disk space used by logs

    This is probably going to suck but run this:

    sort /var/log/kern.log | uniq | less
    sort /var/log/syslog | uniq | less
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Tags for this Thread


Posting Permissions

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