Jump to content

massive log files


brucedjones
 Share

Recommended Posts

i noticed a few days ago that my "/" partition was starting to get fuller and fuller quicker and quicker, after a day another 1GB's worth of stuff has appeared. so i went through my main dir's to figure out where all these huge files where and found them to be in /var/log/ so im guessing they are only log files...but why do they have to be so big?? and more importantly how can ni stop them getting so big??

 

im using mandrake 9.2 and the files in question are:

 

/var/log/

syslog - 1.2GB

messages - 1.2GB

/var/log/kernel/

info - 401.3MB

errors - 872.4MB

Link to comment
Share on other sites

ok if i puy the /var directory on another partition will they just grow until its full and then stop. and it wont let me delete the massive logs so i cant move it as it stands because the current dir is about 4GB and the new partitions only 2.2GB

Link to comment
Share on other sites

How long has it taken for them to get this way? If not very long then something is seriously wrong. Is there any critical info in them that would give a clue as to why this is happening?

 

Make sure you have

anacron

cron

atd

logcheck

(where'd logrotate go?)

 

Personally, I uninstall them all and do not run any of them ONCE I know all is well with the system/install, but this is just a desktop.

Edited by bvc
Link to comment
Share on other sites

Importance depends on what the logs say. If it only took a week for them to grow to this size, then like bvc said, something is seriously wrong. My log files are much smaller even after letting them grow for almost 2 1/2 years.

Read the logs a little, especiallt at the end of the files. See if they can tell you what's causing these files to grow so fast. If you're stumped, post a small snippet here.

The separate partition for /var is a real good idea, and IMHO should be the default for any Linux install.

Link to comment
Share on other sites

I'm sorry I only skimmed your post the first time and didn't spot how fast it was growing. :(

 

If you go to Applications - Monitoring - System Log, you should be able to see your logs in a convenient form. It defaults to messages, but you can use File - Open to access your other logs.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...