home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Linux and Unix
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 2265
Discussions: 186,591, Posts: 2,226,843, Members: 230,213
Free Scan: Update Your PC's Outdated Drivers to Optimize Performance
Old May 15th, 2004, 01:43 PM   Digg it!   #1 (permalink)
Leader of the Crab People
 
Redwolf's Avatar
 
Join Date: Oct 2001
Location: NCSU
Posts: 4,372
Send a message via ICQ to Redwolf Send a message via AIM to Redwolf Send a message via Yahoo to Redwolf
Really, really, really big log file

I got a *small* problem, see if you can identify it:

Code:
bash-2.05b$ ls -l /var/log
total 4281880
-rw-r--r--    1 root     users       26574 Apr 19 16:29 XFree86.0.log
-rw-r--r--    1 root     users       35526 Apr 17 00:32 XFree86.0.log.old
-rw-r--r--    1 root     users       26425 May 15 12:35 Xorg.0.log
-rw-r--r--    1 root     users       26425 May 15 12:35 Xorg.0.log.old
drwxr-xr-x    2 root     root         4096 Apr 19 20:30 apache2
drwxr-xr-x    2 root     root         4096 Mar  2 16:39 cups
-rw-rw----    1 portage  portage    370528 May 15 12:24 emerge.log
-rw-r--r--    1 root     root       134901 Feb 27 09:21 genkernel.log
-rw-r--r--    1 root     root       292584 May 15 12:06 lastlog
-rw-------    1 root     root     4378940344 May 15 12:40 messages
drwxr-xr-x    2 root     root         4096 Sep 10  2003 news
-rw-r--r--    1 root     root         4235 May  8 18:55 nvidia-installer.log
drwxr-xr-x    2 root     root         4096 Mar  1 21:59 samba
-rw-r--r--    1 root     root       161146 May 15 12:23 scrollkeeper.log
-rw-rw-r--    1 root     utmp       554112 May 15 12:43 wtmp
bash-2.05b$
If you said "Why is the messages file 4.1 GB big?!?!" then you have won the prize! Apparently, my logger logs all my emerge operations too. Not good. Any way to limit the size of this file? I'm gonna try deleting it in a bit.

Redwolf is offline   Reply With Quote
TechIMO.com Ads - Login or register for less ads.
How many errors does your computer have?

You no longer need to guess! This free stability scan and registry cleaner download will give you a complete diagnosis of your Windows registry, identifying errors and conflicts.

FREE instant scan


Guest, Register Free! to remove this ad and get your tech support questions answered in minutes!
Old May 15th, 2004, 01:49 PM     #2 (permalink)
Banned
 
thronka's Avatar
 
Join Date: Dec 2002
Location: Garland, Texas USA
Posts: 1,785
Looks like your mailbox file. Have you tried opening the file to see the contents?

thronka is offline   Reply With Quote
Old May 15th, 2004, 01:59 PM     #3 (permalink)
Leader of the Crab People
 
Redwolf's Avatar
 
Join Date: Oct 2001
Location: NCSU
Posts: 4,372
Send a message via ICQ to Redwolf Send a message via AIM to Redwolf Send a message via Yahoo to Redwolf
Yeah I tried. It crashed gedit. I wasn;t about to 'less' it either, since that caches the file it tries to show.

I don't use e-mail on Linux (yet), so it can't be that.

Redwolf is offline   Reply With Quote
Old May 15th, 2004, 03:27 PM     #4 (permalink)
Ultimate Member
 
lynchmob's Avatar
 
Join Date: Oct 2001
Location: Mid-Atlantic
Posts: 1,390
You can run tail to see whats recent and maybe check to see if the logrotate script is in /etc/cron.daily.
__________________
Seldom right,but never in doubt...
lynchmob is offline   Reply With Quote
Old May 15th, 2004, 03:42 PM     #5 (permalink)
Banned
 
thronka's Avatar
 
Join Date: Dec 2002
Location: Garland, Texas USA
Posts: 1,785
you can be running logwatch and it writes everyday to that file. just login as root and type mail and read the messages.. how many do you have?
thronka is offline   Reply With Quote
Old May 15th, 2004, 04:44 PM     #6 (permalink)
Ultimate Member
 
Epyon9283's Avatar
 
Join Date: Mar 2002
Location: South Brunswick, NJ,
Posts: 1,337
Send a message via ICQ to Epyon9283 Send a message via AIM to Epyon9283 Send a message via Yahoo to Epyon9283
/var/log/messages has nothing to do with mail.

look through it and see whats writing to the log so much. I'd also consider using logrotate to keep the size down.
Epyon9283 is offline   Reply With Quote
Old May 15th, 2004, 07:45 PM     #7 (permalink)
dword to your moms
 
krohnjw's Avatar
 
Join Date: Oct 2001
Location: ~/
Posts: 3,195
Send a message via AIM to krohnjw
Yeah redwolf, just tail it for the last few lines, then add it into log rotate.

If you have /var/log on a separate partition you can set a quota on the partition, but that would not limit that file, just the total partition size. Logrotate would at least keep the logs recent, and hopefully of decent size.
krohnjw is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
anyone know where scandisk keeps its logs under w2k ? ZL1 Technical Support 10 May 29th, 2003 09:02 AM
PCanywhere Screwed my logon procedure mtesta1214 General Tech Discussion 0 October 22nd, 2002 01:55 PM
Media Player 7.1 problems drizzle Applications and Operating Systems 4 May 7th, 2002 03:08 PM
ECCp event log, where the heck did it go??? RADAR1797 Distributed Computing 2 January 15th, 2002 02:41 AM

Most Active Discussions
Is It Just Me? (491)
Why Does the MOON Grow Bigger as It.. (9)
UPGRADING C/D DRIVE TO 250GB & .. (10)
Connected to LAN but unable to use .. (5)
Is This A Compatible Gaming PC? (16)
1 internet. 1 house. 3 computer. ho.. (9)
New Mobo (8)
Best AGP Card? "Best Bang for.. (12)
Folderchat: The Holiday thread (111)
Recent Discussions
Computer won't start (0)
Request for recovary system ins.. (0)
Folderchat: The Holiday thread (111)
gossip (0)
New Mobo (8)
am2 on 939 (4)
Folderchat Weekday thread (411)
heatsink issue (0)
Hard Core Overclock (5)
getting a keycode through reged.. (0)
FS: Dell 6000 laptop, modded 36.. (2)
Apple iPod touch 16 GB $200 (4)


All times are GMT -4. The time now is 11:08 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28