LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2011, 11:43 PM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 37
Not able to generate boot.log.


Hi I m not able to find anything under boot.log file.
Here is the output of boot.log files.

As you can see nothing is getting written inside the boot.log files .

How can i make all the events to be logged under boot.log file?

Code:
# ls -ltr /var/log | grep boot
-rw------- 1 root root      0 Jan 25 15:59 boot.log.4
-rw------- 1 root root      0 Feb  1 18:38 boot.log.3
-rw------- 1 root root      0 Feb  9 00:00 boot.log.2
-rw------- 1 root root      0 Feb 16 17:57 boot.log.1
-rw------- 1 root root      0 Feb 20 04:02 boot.log
 
Old 02-20-2011, 11:55 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
What distro are you using? And are you using syslog, rsyslog... etc?
 
Old 02-21-2011, 12:02 AM   #3
pinga123
Member
 
Registered: Sep 2009
Posts: 684

Original Poster
Blog Entries: 2

Rep: Reputation: 37
Quote:
Originally Posted by corp769 View Post
What distro are you using? And are you using syslog, rsyslog... etc?
Code:
# lsb_release -a
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: EnterpriseEnterpriseServer
Description:    Enterprise Linux Enterprise Linux Server release 5.2 (Carthage)
Release:        5.2
Codename:       Carthage
Not sure about using syslog,rsyslog How do i check that?
 
Old 02-21-2011, 12:08 AM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Look in /etc and see if you have a rsyslog.conf or syslog.conf file.
 
Old 02-21-2011, 12:16 AM   #5
pinga123
Member
 
Registered: Sep 2009
Posts: 684

Original Poster
Blog Entries: 2

Rep: Reputation: 37
Quote:
Originally Posted by corp769 View Post
Look in /etc and see if you have a rsyslog.conf or syslog.conf file.
Yes i do have /etc/syslog.conf file.
Does it make any difference ?Is my boot process logged into some other file?
 
Old 02-21-2011, 12:29 AM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Post the contents of syslog.conf if you can.
 
Old 02-21-2011, 12:58 AM   #7
pinga123
Member
 
Registered: Sep 2009
Posts: 684

Original Poster
Blog Entries: 2

Rep: Reputation: 37
Quote:
Originally Posted by corp769 View Post
Post the contents of syslog.conf if you can.
Here are the file contents.
Quote:
# 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

Last edited by pinga123; 02-21-2011 at 01:05 AM.
 
Old 02-21-2011, 01:36 AM   #8
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Well I stumbled across this....

"Boot-time logging to /var/log/boot.log is not available in Red Hat Enterprise Linux 5.2. "

http://www.centos.org/docs/5/html/re...U2-x86-en.html

Let me do some research and I will see if I can get this to work for you. Be patient...
 
Old 02-21-2011, 01:42 AM   #9
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
After doing research, initlog was removed. If anything, you should upgrade...
 
Old 02-21-2011, 01:48 AM   #10
pinga123
Member
 
Registered: Sep 2009
Posts: 684

Original Poster
Blog Entries: 2

Rep: Reputation: 37
Quote:
Originally Posted by corp769 View Post
After doing research, initlog was removed. If anything, you should upgrade...
Does it mean boot process is not getting logged anywhere?
 
Old 02-21-2011, 01:49 AM   #11
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by pinga123 View Post
Does it mean boot process is not getting logged anywhere?
Nope.
 
Old 02-21-2011, 02:16 AM   #12
pinga123
Member
 
Registered: Sep 2009
Posts: 684

Original Poster
Blog Entries: 2

Rep: Reputation: 37
Quote:
Originally Posted by corp769 View Post
Nope.
Is there any workaround for this?

Also what is the significance of this from /etc/syslog.conf
Code:
# Save boot messages also to boot.log
local7.* /var/log/boot.log

Last edited by pinga123; 02-21-2011 at 02:18 AM.
 
  


Reply



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
How to generate a log in syslog PlatinumX Linux - Newbie 3 09-07-2010 01:12 PM
[SOLVED] /var/log/boot.log is empty in RHEL5.5. How to enable the boot log? rajivdp Linux - Newbie 1 08-12-2010 08:11 AM
[SOLVED] Generate /boot/grub/menu.lst with UUID instead of mapped name? uhcafigdc Linux - Software 6 08-03-2010 03:40 PM
why are boot.log and boot.log.1 getting updated but no reboot has taken place lynkster Red Hat 2 01-10-2009 11:17 PM
Logging is not happening on my /var/log/boot.log Copain Linux - Security 2 09-28-2007 05:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:23 AM.

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