- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- mail.log file is not updating
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2008 08:37 AM
10-22-2008 08:37 AM
mail.log file is not updating
Can some one give me some clue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2008 08:38 AM
10-22-2008 08:38 AM
Re: mail.log file is not updating
If you zero'd it out, you may need to sig_hup the syslogd process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2008 08:43 AM
10-22-2008 08:43 AM
Re: mail.log file is not updating
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2008 09:52 AM
10-22-2008 09:52 AM
Re: mail.log file is not updating
When did it stop updating? What did you do beforehand? DId you rename ('mv') the current file?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2008 09:55 AM
10-22-2008 09:55 AM
Re: mail.log file is not updating
ps -ef|grep syslogd
kill -1 PID_OF_SYSLOGD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2008 06:36 PM
10-22-2008 06:36 PM
Re: mail.log file is not updating
cat -t /etc/syslog.conf
It should look like this:
#
mail.debug^I^I/var/adm/syslog/mail.log
*.info;mail.none;local5.none;auth.none^I/var/adm/syslog/syslog.log
auth.info^I^I/var/adm/syslog/auth.log
local5.info^I^I/var/adm/syslog/ftp.log
*.alert^I^I^I/dev/console
*.alert^I^I^Iroot
*.emerg^I^I^I*
Notice all the ^I characters which represent tabs. No spaces are allowed except in comments. If a space exists in a directive line, the line is ignored.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2008 06:51 PM
10-22-2008 06:51 PM
Re: mail.log file is not updating
into a different file.
Be sure and check the space in /var. This kind of problem has been
seen
when /var is full and the syslog daemon could no longer write to the
Verify that syslogd is running:
# ps -ef |grep syslogd
root 435 1 0 Jun 2 ? 0:00 /usr/sbin/syslogd -D
/etc/syslog.conf could be corrupt. For example, a 'space' character
instead of a 'tab' between columns may cause syslogd to stop logging.
See 'man syslogd':
"The action field is separated from the selector by one or more tabs."
Save your /etc/syslog.conf to a different name:
# mv /etc/syslog.conf /etc/oldsyslog.conf
Copy the file /usr/newconfig/etc/syslog.conf to /etc/syslog.conf:
# cp /usr/newconfig/etc/syslog.conf /etc/syslog.conf
kill -HUP $(cat /var/run/syslog.pid)
Note: Look for the restart message in /var/adm/syslog/syslog.log:
Mar 2 13:23:58 system1 syslogd: going down on signal 15
Mar 2 13:24:11 system1 syslogd: restart
If syslogd still does not log information to syslog.log:
Check if the named pipe used by syslogd is full:
# ll /dev/log
prw-rw-rw- 1 root root 0 Mar 2 14:42 /dev/log
If the size is greater than 0, clear it out:
# > /dev/log
Verify that /dev/klog exists:
# ll /dev/klog
crw------- 1 bin bin 189 0x000000 Jun 26 2001
/dev/klog
Restart syslogd
================
# mv /etc/syslog.conf /etc/syslog.conf.OLD
# cp /usr/newconfig/etc/syslog.conf /etc/syslog.conf
Another thing to try is to start syslogd with the -d option, which
enables debug logging. If syslogd still doesn't start when the default
/etc/syslog.conf file is in place, hopefully the debug output of launching
syslogd with -d will give you an indication as to why.
# /usr/sbin/syslogd -d -D
The -d option will cause syslogd to run in the foreground, but again,
hopefully it will tell you why it is exiting - assuming it does exit
with an error.
Rgds,
Johnson