View Single Post
Old 11th April 2013
CyberJet's Avatar
CyberJet CyberJet is offline
Real Name: Ramon
BSD Student
 
Join Date: Feb 2009
Location: Miami FL
Posts: 98
Default

Thanks for your observation, four eyes see better than two. There still some errors that fly by when the system boots up, I can't see the whole thing. Darn,

I tried to modify my system so that I can redirect the console messages to a file console.log, this way I may get a hint as to what is going on.

I found this link:

I edited the newsyslog.conf file with:
Code:
/var/log/console.log * * * * * * * * * *640 *5 * *250 ** * * Z
Since my knowledge is very limited I'm not sure that this code really works: Can someone please analyze?
Code:
*.err;kern.debug;auth.notice;authpriv.none;mail.crit * */dev/console
<snip>
*.err * * * * * * * * * * * * * * * * * * * * * * * * * /dev/console
*.notice;auth.debug * * * * * ** * * * * * * * * * * * /dev/console
*.alert * * * * * * * * * * * * * * * ** * * * * * * * */dev/console
I'm suppose to change previous code to this:
Code:
*.err;kern.debug;auth.notice;authpriv.none;mail.crit * */var/log/console.log
<snip>	
*.err * * * * * * * * * * * * * * * * * * * * * * * * * /var/log/console.log
*.notice;auth.debug * * * * * * * * * * * * * * * * * * /var/log/console.log
*.alert * * * * * * * * * * * * * * * * * * * * * * * * /var/log/console.log
I created and changed the permission as directed:
Code:
# touch /var/log/console.log
# chmod 640 /var/log/console.log
This is the content of my:

Code:
# cat syslog.conf
#       $OpenBSD: syslog.conf,v 1.17 2005/05/25 07:35:38 david Exp $
#

*.notice;auth,authpriv,cron,ftp,kern,lpr,mail,user.none /var/log/messages
kern.debug;syslog,user.info                             /var/log/messages
auth.info                                               /var/log/authlog
authpriv.debug                                          /var/log/secure
cron.info                                               /var/cron/log
daemon.info                                             /var/log/daemon
ftp.info                                                /var/log/xferlog
lpr.debug                                               /var/log/lpd-errs
mail.info                                               /var/log/maillog
#uucp.info                                              /var/log/uucp

*.err;kern.debug;auth.notice;authpriv.none;mail.crit * */var/log/console.log
<snip>
*.err * * * * * * * * * * * * * * * * * * * * * * * * * /var/log/console.log
*.notice;auth.debug * * * * * * * * * * * * * * * * * * /var/log/console.log
*.alert * * * * * * * * * * * * * * * * * * * * * * * * /var/log/console.log

# Uncomment this line to send "important" messages to the system
# console: be aware that this could create lots of output.
#*.err;auth.notice;authpriv.none;kern.debug;mail.crit   /dev/console

# Uncomment this to have all messages of notice level and higher
# as well as all authentication messages sent to root.
#*.notice;auth.debug                                    root

# Everyone gets emergency messages.
*.emerg                                                 *

# Uncomment to log to a central host named "loghost".  You need to run
# syslogd with the -u option on the remote host if you are using this.
# (This is also required to log info from things like routers and
# ISDN-equipment).  If you run -u, you are vulnerable to syslog bombing,
# and should consider blocking external syslog packets.
#*.notice;auth,authpriv,cron,ftp,kern,lpr,mail,user.none        @loghost
#auth,daemon,syslog,user.info;authpriv,kern.debug               @loghost

# Uncomment to log messages from sudo(8) and chat(8) to their own
# respective log files.  Matches are done based on the program name.
# Program-specific logs:
#!sudo
#*.*                                                    /var/log/sudo
#!chat
#*.*                                                    /var/log/chat
#
This may be considered unrelated but I need to be able to see the error messages that are scrolling by. I'm sure that with your help I can get to solving this issue.

Thank you and Regards
__________________
Speak softly and carry BSD!

Last edited by CyberJet; 11th April 2013 at 06:14 PM. Reason: Typo
Reply With Quote