LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 01-30-2008, 03:07 PM   #1
blackcloud1
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
Not all system logs are updating


I am running RHEL 4.0. When I checked my system logs I noticed that not all of the logs were updating. System Log, Boot Log, Security Log were not updating. X.ORGX11LOg, Audit, wtmp, Lastlog were some of the logs that were updating. The previous time that I had checked on the logs all were updating. I think I have restarted the appropriate services but I an new to Linux and may have missed something. Any help would be appreciated

Blackcloud1
 
Old 01-30-2008, 03:49 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
These are the filenames to check syslogd is currently configured to log to: 'awk '/\/var\/log/ {print $NF}' /etc/syslog.conf'
These are the filenames to check that are opened by the running syslogd: 'lsof -w -n +D/var/log | awk '/syslogd/ {print $2, $NF}''.
These are the pids of syslogd: 'pgrep -lf syslog' which should correspond with lsof output.

Note that if you need to manually restart applications to get them logging again there is something wrong. It could point to say logrotate or "tail" following the wrong file descriptor, but only a detailed description of the situation from you could shed a light on this.

Also note some files don't get updated except on boot (boot.log), some are not logged to unless the X process is running and needs to (X11/Xorg), some won't be logged to unless the daemon is running (Auditd, audit.log) and some don't get used unless there's a login of sorts (faillog, btmp, lastlog, utmp, wtmp, like that). If I am allowed to nit for a second please note there is no "System Log" or "Security Log" or "X.ORGX11LOg", the proper names are "messages", "secure" and "Xorg.0.log", possibly prefixed with full path if configured other than default.
 
  


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
System logs dellthinker Debian 2 02-15-2007 08:13 PM
webalizer - stopped updating my logs nickd63 Linux - Networking 1 12-13-2004 09:55 AM
logs aren't updating psychofurryewok Slackware 4 11-22-2004 05:15 PM
where are the system logs? juanb Linux - General 2 10-18-2003 08:33 AM
System Logs NSKL Linux - General 1 06-07-2002 04:29 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 07:40 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