LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-20-2006, 08:44 AM   #1
vm_devadas
Member
 
Registered: Sep 2006
Location: India
Distribution: Redhat and Suse
Posts: 75

Rep: Reputation: 15
log file not updating - /var/adm/messages


OS: Suse 8
Kernel : 2.4.21-278-smp

Problem:
One of the linux box having problem not getting the /var/adm/messages updated.
The details are given below.
XXX:/var/adm # ls -al messages*
-rw-r--r-- 1 root root 0 Dec 15 12:05 messages
-rw-r--r-- 1 root root 41979 Jul 23 23:00 messages.0.gz
-rw-r--r-- 1 root root 43401 Jul 16 23:00 messages.1.gz
-rw-r--r-- 1 root root 40627 Jul 9 23:00 messages.2.gz
-rw-r--r-- 1 root root 39977 Jul 2 23:00 messages.3.gz


First I verified the status of syslog
XXX # rcsyslog status
Checking for service syslog: Dead


Then restarted the syslog daemon
XXX # rcsyslog status
Checking for service syslog: running


But still the message file is not getting updated.
Pls help to look into this issue.


Devadas VM
 
Old 12-20-2006, 09:04 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,995
Blog Entries: 5

Rep: Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782
Is "messages" supposed to be in /var/adm instead of /var/log on Suse?

When I first started doing Linux I kept mistakenly looking in /var/adm since that is where most UNIX flavors keep system logs but on Debian and Rehdhat its in /var/log rather than /var/adm.
 
Old 12-21-2006, 07:15 AM   #3
vm_devadas
Member
 
Registered: Sep 2006
Location: India
Distribution: Redhat and Suse
Posts: 75

Original Poster
Rep: Reputation: 15
the above reply is useles..
plz help me
 
Old 12-21-2006, 07:29 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Hi,

Why is jlightner's answer useless?? You could at least tell us (the persons willing to help) why a particular answer is useless or helpful.

Besides that: jlightner has a very valid point. I've used suse up to version 8 and messages were logged in /var/log, not var/adm.

- did you change the location yourself?
- did you check /etc/syslog.conf to check the actual log locations and rules?
- did you check the startup file?
- did you find out why the syslog daemon wasn't running in the first place?
 
Old 12-21-2006, 11:29 AM   #5
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,995
Blog Entries: 5

Rep: Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782
Quote:
Originally Posted by vm_devadas
the above reply is useles..
plz help me

Having been to India I'm surprised to find someone as rude as you claiming to be from there. Most Indians I met were very polite. In future you might thank the poster for his input then attempt to reclarify your question or at the very least just ignore the post at all. I'll forego bothering to add my "useless" input on any future posts I see by you.
 
Old 12-21-2006, 10:58 PM   #6
vm_devadas
Member
 
Registered: Sep 2006
Location: India
Distribution: Redhat and Suse
Posts: 75

Original Poster
Rep: Reputation: 15
[sorry!!! if hurted someone's/group's feeling]
we use /var/adm location for log files.
couldn't find the exact reason for why the syslog daemon dead in first place.

see some more deatils

/etc # ls -al syslog*
-rw------- 1 root root 366 Jul 30 14:30 syslog.conf
-rw-r--r-- 1 root root 0 Jul 30 13:53 syslog.conf.17943
-rw-r--r-- 1 root root 0 Jul 30 13:58 syslog.conf.3833


==================================================================================
/etc # more syslog.conf
*.err -/var/adm/messages
kern.debug -/var/adm/messages
daemon.notice -/var/adm/messages
mail.crit -/var/adm/messages
*.* -/var/adm/messages
*.alert root
# Tivoli logfile adapter entry, ID=
*.emerg;*.alert;*.crit;*.err;*.warning;*.notice;*.info /tmp/.tivoli/.tecad_logfile.fifo.stp05508.
# End of logfile adapter entry, ID=
stp05508:/etc # more syslog.conf.FUSE.1134011953
# /etc/syslog.conf - Configuration file for syslogd(8)
#
# For info about the format of this file, see "man syslog.conf".
#

#
#
# print most on tty10 and on the xconsole pipe
#
kern.warn;*.err;authpriv.none /dev/tty10
kern.warn;*.err;authpriv.none |/dev/xconsole
*.emerg *

# enable this, if you want that root is informed
# immediately, e.g. of logins
#*.alert root


#
# all email-messages in one file
#
mail.* -/var/log/mail

#
# all news-messages
#
# these files are rotated and examined by "news.daily"
news.crit -/var/log/news/news.crit
news.err -/var/log/news/news.err
news.notice -/var/log/news/news.notice
# enable this, if you want to keep all news messages
# in one file
#news.* -/var/log/news.all

#
# Warnings in one file
#
*.=warn;*.=err -/var/log/warn
*.crit /var/log/warn

#
# save the rest in one file
#
*.*;mail.none;news.none -/var/log/messages

#
# enable this, if you want to keep all messages
# in one file
#*.* -/var/log/allmessages

#
# Some foreign boot scripts require local7
#
local0,local1.* -/var/log/localmessages
local2,local3.* -/var/log/localmessages
local4,local5.* -/var/log/localmessages
local6,local7.* -/var/log/localmessages
===================================================================================

rcsyslog status
Checking for service syslog: Running

===================================================================================
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Messages file in /var/adm rust8y Solaris / OpenSolaris 4 10-26-2006 01:46 AM
Clearing the var/log/adm/messages? as400 Solaris / OpenSolaris 17 04-17-2006 03:41 AM
Redirecting the kernel messages to file other than /var/log/messages jyotika_b83 Linux - General 3 04-28-2005 06:39 PM
iptables, changing log file from /var/log/messages acid2000 Linux - Networking 3 03-11-2003 08:38 PM
/var/adm/messages & syslog Khalid Linux - General 0 11-08-2001 05:40 PM


All times are GMT -5. The time now is 05:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration