LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-14-2006, 07:33 AM   #1
Sapient
Member
 
Registered: Oct 2003
Location: San Luis Obispo, CA
Distribution: SuSE
Posts: 196

Rep: Reputation: 30
/var/log/messages LARGE


My log at /var/log/messages is huge! What can I do to empty and limit the size... currently 16,000,000,000....


Thanks
 
Old 01-14-2006, 08:20 AM   #2
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
the easiest way would be to do:
Code:
echo > /var/log/messages
It will take a while on that big a logfile.

To limit the size you might want to look into 'logrotate'. Also, you might want to check out before emptying the log, why its getting so large and fix the problem that is spamming it out of the sky.. (: I once had an apache error_log skyrocket to 18Gb before the partition ran out of space.. php went wild.. (;
 
Old 01-14-2006, 08:21 AM   #3
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
consider making smaller files with root powers edit the file
/etc/logrotate.conf....probably weekly to daily may suffice?
 
Old 01-14-2006, 08:33 AM   #4
Sapient
Member
 
Registered: Oct 2003
Location: San Luis Obispo, CA
Distribution: SuSE
Posts: 196

Original Poster
Rep: Reputation: 30
Thanks for the help. Here is the problem that is causing the logging... Was unable to see it because of the size.

Jan 14 06:30:30 mind pop3[32515]: Fatal error: invalid option name on line 23 of configuration file
Jan 14 06:30:30 mind master[26352]: process 32515 exited, status 75
Jan 14 06:30:30 mind master[26352]: service pop3 pid 32515 in READY state: terminated abnormally
Jan 14 06:30:30 mind master[32516]: about to exec /usr/lib/cyrus/bin/pop3d
Jan 14 06:30:30 mind pop3[32516]: Fatal error: invalid option name on line 23 of configuration file
Jan 14 06:30:30 mind master[26352]: process 32516 exited, status 75
Jan 14 06:30:30 mind master[26352]: service pop3 pid 32516 in READY state: terminated abnormally
Jan 14 06:30:30 mind master[32517]: about to exec /usr/lib/cyrus/bin/pop3d
Jan 14 06:30:30 mind pop3[32517]: Fatal error: invalid option name on line 23 of configuration file
Jan 14 06:30:30 mind master[26352]: process 32517 exited, status 75
Jan 14 06:30:30 mind master[26352]: service pop3 pid 32517 in READY state: terminated abnormally
Jan 14 06:30:30 mind master[32518]: about to exec /usr/lib/cyrus/bin/pop3d
Jan 14 06:30:30 mind pop3[32518]: Fatal error: invalid option name on line 23 of configuration file
 
Old 01-14-2006, 09:10 AM   #5
Sapient
Member
 
Registered: Oct 2003
Location: San Luis Obispo, CA
Distribution: SuSE
Posts: 196

Original Poster
Rep: Reputation: 30
Why is this log continuing to fill when I have stopped the following?

/etc/init.d/mysql.server stop
/usr/local/sbin/authdaemond stop
/usr/lib/courier-imap/libexec/imapd.rc stop
/usr/lib/courier-imap/libexec/pop3d.rc stop
postfix stop




Jan 14 07:06:20 mind master[26352]: process 29592 exited, status 75
Jan 14 07:06:20 mind master[26352]: service pop3 pid 29592 in READY state: terminated abnormally
Jan 14 07:06:20 mind master[29593]: about to exec /usr/lib/cyrus/bin/pop3d
Jan 14 07:06:20 mind pop3[29593]: Fatal error: invalid option name on line 23 of configuration file
Jan 14 07:06:20 mind master[26352]: process 29593 exited, status 75
Jan 14 07:06:20 mind master[26352]: service pop3 pid 29593 in READY state: terminated abnormally
Jan 14 07:06:20 mind master[29594]: about to exec /usr/lib/cyrus/bin/pop3d
Jan 14 07:06:20 mind pop3[29594]: Fatal error: invalid option name on line 23 of configuration file
Jan 14 07:06:20 mind master[26352]: process 29594 exited, status 75
Jan 14 07:06:20 mind master[26352]: service pop3 pid 29594 in READY state: terminated abnormally
Jan 14 07:06:20 mind master[29595]: about to exec /usr/lib/cyrus/bin/pop3d
Jan 14 07:06:20 mind pop3[29595]: Fatal error: invalid option name on line 23 of configuration file
Jan 14 07:06:20 mind master[26352]: process 29595 exited, status 75
Jan 14 07:06:20 mind master[26352]: service pop3 pid 29595 in READY state: terminated abnormally
Jan 14 07:06:20 mind master[29596]: about to exec /usr/lib/cyrus/bin/pop3d
Jan 14 07:06:20 mind pop3[29596]: Fatal error: invalid option name on line 23 of configuration file
Jan 14 07:06:20 mind master[26352]: process 29596 exited, status 75
Jan 14 07:06:20 mind master[26352]: service pop3 pid 29596 in READY state: terminated abnormally
Jan 14 07:06:20 mind master[29597]: about to exec /usr/lib/cyrus/bin/pop3d
Jan 14 07:06:20 mind pop3[29597]: Fatal error: invalid option name on line 23 of configuration file
 
Old 01-14-2006, 09:13 AM   #6
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
No idea why it keeps on retrying, maybe some init system has orders to keep it alive nomatter what..

So, youre easiest off just fixing the error on line 23 of the conf.. (:
 
Old 01-14-2006, 09:15 AM   #7
Sapient
Member
 
Registered: Oct 2003
Location: San Luis Obispo, CA
Distribution: SuSE
Posts: 196

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Artanicus
No idea why it keeps on retrying, maybe some init system has orders to keep it alive nomatter what..

So, youre easiest off just fixing the error on line 23 of the conf.. (:
That was actually my first action. I am assuming master. I cannot find where it would be a problem...

# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_etrn_restrictions=reject
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
#tlsmgr fifo - - n 300 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
#localhost:10025 inet n - n - - smtpd -o content_filter=



maildrop unix - n n - - pipe
flags=Ru user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
vscan unix - n n - 10 pipe
user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}
procmail unix - n n - - pipe
flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
scache unix - - n - 1 scache
discard unix - - n - - discard
tlsmgr unix - - n 1000? 1 tlsmgr
 
  


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
what does messages suppressed in /var/log/messages mean saavik Linux - Networking 2 05-07-2008 02:31 PM
Redirecting the kernel messages to file other than /var/log/messages jyotika_b83 Linux - General 3 04-28-2005 06:39 PM
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 04:03 PM
/var/log/messages full of these messages. Should I be concerned? mdavis Linux - Security 5 04-16-2004 10:08 AM
iptables, changing log file from /var/log/messages acid2000 Linux - Networking 3 03-11-2003 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 02:42 PM.

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
Open Source Consulting | Domain Registration