LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-22-2008, 03:49 AM   #1
Elnegro8
Member
 
Registered: Jul 2006
Posts: 70

Rep: Reputation: 15
boot.log seems to be empy all the time


i all i try to watch the boot log but for some reason all of the boot log r empty any idea why ??? centos5




[root@Elena ~]# ls -lll /var/log/b*
-rw------- 1 root root 0 Jul 20 04:02 /var/log/boot.log
-rw------- 1 root root 0 Jul 13 12:37 /var/log/boot.log.1
-rw------- 1 root root 0 Jul 3 22:05 /var/log/boot.log.2
 
Old 07-22-2008, 09:08 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
Well, when was the last time you rebooted?
 
Old 07-23-2008, 02:27 AM   #3
Elnegro8
Member
 
Registered: Jul 2006
Posts: 70

Original Poster
Rep: Reputation: 15
i rebooted a lot of time but why the logs r empty and there size r 0????

do i need to enable someting ????
 
Old 07-23-2008, 02:58 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Some systems based on Red Hat have disabled this feature a long time ago. The file boot.log is still created and logrotated, but it is left empty. There is a long and unterminated discussion at bugzilla (see bug 151238 and 163461).

The weird thing is that the file /var/log/boot.log is populated by boot messages in RHEL4 and RHEL5. I guessed that CentOS wrote in it as well, since it is a recompiled version of the Red Hat code. For sure it affects Fedora since FC4.
 
Old 07-23-2008, 10:38 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
If you want boot logs enabled, make sure they're in your /etc/syslog.conf file. Might look something like this:

Code:
# Save boot messages also to boot.log
local7.*                                                /var/log/boot.log
 
Old 07-24-2008, 02:31 AM   #6
Elnegro8
Member
 
Registered: Jul 2006
Posts: 70

Original Poster
Rep: Reputation: 15
yes i check the file /etc/syslog.conf its exists

local7.* /var/log/boot.log

any else idea i need to enable something?
 
Old 07-26-2008, 06:03 AM   #7
Elnegro8
Member
 
Registered: Jul 2006
Posts: 70

Original Poster
Rep: Reputation: 15
any idea how to make it works ???

[root@Elena ~]# cat /etc/syslog.conf
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none /var/log/messages

# The authpriv file has restricted access.
authpriv.* /var/log/secure

# Log all the mail messages in one place.
mail.* -/var/log/maillog


# Log cron stuff
cron.* /var/log/cron

# Everybody gets emergency messages
*.emerg *

# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler

# Save boot messages also to boot.log
local7.* /var/log/boot.log
[root@Elena ~]#
 
Old 07-26-2008, 06:34 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
No idea, just two things to check. syslog.conf is picky about spaces and tabs: if you use tabs in entries don't mix with spaces (confirm tab usage with: 'od -a /etc/syslog.conf|grep -qm1 "ht\{1,9\}" && echo using tabs'). If you can see your Syslog PID ('pgrep -lf syslogd'), then can you confirm the log is opened by it ('/usr/sbin/lsof -w -n -p `pgrep syslogd` -a +D/var/log')?
 
  


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
Where do you find the Boot Log & How does klodg solve boot time issues SheMoves Linux - Newbie 2 06-25-2008 03:17 PM
a command or way to log time of iptables LOG entries? dividingbyzero Linux - Security 3 06-06-2008 01:23 AM
Logging is not happening on my /var/log/boot.log Copain Linux - Security 2 09-28-2007 05:34 PM
Empy ifconfig and other problems (newbie) mark_2811 Debian 7 12-11-2003 11:27 PM
Can log files be time stamped? (such as FTP login and transfer log files) bripage Linux - Networking 6 08-08-2002 10:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration