- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- syslog.log showing zero !!!
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
04-18-2006 02:34 AM
04-18-2006 02:34 AM
syslog.log showing zero !!!
Syslog.log is showing is zero byte. And not logging anything. What could be the reason:
details:
-rw-r--r-- 1 root sys 0 Apr 18 09:27 syslog.log
-r--r--r-- 1 root root 97686 Mar 10 17:15 mail.log
-rw-r--r-- 1 root root 0 Apr 18 09:19 OLDsyslog.log
--------------------------------------------------------------------------
# ps -ef | grep syslogd
root 9080 9041 1 10:18:37 pts/te 0:00 grep syslogd
root 2525 1 0 09:27:04 ? 0:00 /usr/sbin/syslogd -D
--------------------------------------------------------------------------
server01 # ls -l /etc/syslog.conf
-r--r--r-- 1 bin bin 429 Apr 16 03:43 /etc/syslog.conf
server01 # cat /etc/syslog.conf
# @(#)B.11.11_LR
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
*.debug;mail.none /var/adm/syslog/syslog.log
*.debug @10.16.241.11
*.debug @172.20.204.200
local3.debug @172.18.100.18
*.alert /dev/console
*.alert root
*.emerg *
server01: syslog #
---------------------------------------------------------------------------
Whats wrong!!!
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 02:38 AM
04-18-2006 02:38 AM
Re: syslog.log showing zero !!!
Try hupping it:
kill -HUP `pid of syslogd`
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 02:40 AM
04-18-2006 02:40 AM
Re: syslog.log showing zero !!!
To find the PID for syslogd:
ps -ef | grep syslogd
Send hangup signal so syslogd starts writing to the new file:
kill -HUP
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 02:40 AM
04-18-2006 02:40 AM
Re: syslog.log showing zero !!!
kill -15
Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 02:45 AM
04-18-2006 02:45 AM
Re: syslog.log showing zero !!!
I suspect that you removed 'syslog.log' after copying it and have not restarted the 'syslogd' daemon. If that's the case, do:
# /sbin/init.d/syslogd stop
# /sbin/init.d/syslogd start
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 02:45 AM
04-18-2006 02:45 AM
Re: syslog.log showing zero !!!
If after restarting the syslogd daemon make sure you use the logger command:
logger "This is a test syslog entry"
to make sure it's now logging. If not I would highly suspect a prolem in the syslog.conf file.
You can mv out the syslog.conf file & copy down the /usr/newconfig/etc/syslog.conf file & retest.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 02:45 AM
04-18-2006 02:45 AM
Re: syslog.log showing zero !!!
You are appending only debug level logs to syslog.log (mail debugs excluded).
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 02:52 AM
04-18-2006 02:52 AM
Re: syslog.log showing zero !!!
Fyi , the server has been rebooted manytimes , and also rebooted today.
Here as per Jeff's suggestion:
(logger also not logging anything in syslog.log )
---------
server01 # logger "This is a test for syslog.log file"
server01 #
server01 # cd /var/adm/syslog
server01 # ls -l
total 192
-rw-r--r-- 1 root root 0 Apr 18 09:19 OLDsyslog.log
-r--r--r-- 1 root root 97686 Mar 10 17:15 mail.log
-rw-r--r-- 1 root sys 0 Apr 18 09:27 syslog.log
server01:# man logger
--------------------------------------------------------------------------
Os hp-ux 11.11
-------------------------------------------------------------------------
Thanks,
veri.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 02:56 AM
04-18-2006 02:56 AM
Re: syslog.log showing zero !!!
Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 02:58 AM
04-18-2006 02:58 AM
Re: syslog.log showing zero !!!
Try checking
fuser -u /var/adm/syslog/syslog.log
to check if syslogd has opened this file for logging.
Otherwise try
1.Stop the syslog daemon
2. Delete the syslog.log file
3. >syslog.log
4. Start syslogd daemon
Hope this resolves your problem,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 03:00 AM
04-18-2006 03:00 AM
Re: syslog.log showing zero !!!
1. check for non-printing characters in the filename: cat -v /etc/syslog.conf
2. logger -f /etc/syslog.conf "this is a test"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 03:01 AM
04-18-2006 03:01 AM
Re: syslog.log showing zero !!!
1. check for non-printing characters in the filename: cat -v /etc/syslog.conf
2.
logger -f /var/adm/syslog/syslog.log "this is a test"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 03:07 AM
04-18-2006 03:07 AM
Re: syslog.log showing zero !!!
So if syslog.conf has been edited, spaces may have been used - that's hard to see be just looking at it. That's why I suggested copying down the newconfig file.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 10:23 PM
04-18-2006 10:23 PM
Re: syslog.log showing zero !!!
What is the function of the IP address in the syslog.conf file. Seems it goes to another server ,
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 10:37 PM
04-18-2006 10:37 PM
Re: syslog.log showing zero !!!
*.debug @10.16.241.11
*.debug @172.20.204.200
local3.debug @172.18.100.18
Yes, these are remote syslog servers, that is, they are receving messages from your local system. Check each of the servers:
1. Are they working computers?
1. Are they capable of remote logging?
2. Do they have entries from your local server?
If these are invalid addresses (no server or not syslog-capable) then get rid of those entries. Invalid syslog servers may be hanging your local syslogd The best solution is to replace the syslog.conf file with the original verswion from /usr/newconfig/etc.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2006 10:40 PM
04-18-2006 10:40 PM
Re: syslog.log showing zero !!!
Also find the syslog.conf in /etc
# @(#) $Revision: 74.1 $
#
# 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 *