- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: syslogd not behaving as expected
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
Forums
Discussions
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
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
11-03-2004 06:53 AM
11-03-2004 06:53 AM
syslogd not behaving as expected
I have an application which is integrated for logging to use syslogd.
In the /etc/syslog.conf file when I use the facility as USER then it logs it to the right file as specified in the /etc/syslog.conf but when I use the facility local0 then it does not. Is there any limitation on using the local0-7 facilities.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 06:59 AM
11-03-2004 06:59 AM
Re: syslogd not behaving as expected
I am not aware of such limitation. I do believe local0 is used by IPFilter to log the messages. But I dont think it exclusively locks the local0 facility.
I would suggest posting the contents of the /etc/syslog.conf file.
- Sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 07:02 AM
11-03-2004 07:02 AM
Re: syslogd not behaving as expected
local0.* /var/logs/local0.log
for example?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 07:04 AM
11-03-2004 07:04 AM
Re: syslogd not behaving as expected
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
*.info;mail.none;local0.none /var/adm/syslog/syslog.log
local0.debug /var/opt/SIU_01/log/sysloglocal.log
#*.info;mail.none;local0.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
11-03-2004 07:16 AM
11-03-2004 07:16 AM
Re: syslogd not behaving as expected
ahead of syslog - then restart syslogd
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 07:31 AM
11-03-2004 07:31 AM
Re: syslogd not behaving as expected
I tried your suggestion, but still the same problem. I ran the syslogd in debug mode also and could see clearly that when I use the facility as USER then it says Logging to the coorect file and when I use local0 then it just ignores the filename specified in syslog.conf and starts logging to syslog.
any more suggestions...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 07:58 AM
11-03-2004 07:58 AM
Re: syslogd not behaving as expected
Instead of:
local0.debug /var/opt/SIU_01/log/sysloglocal.log
Make it:
local0.debug /var/adm/syslog/sysloglocal.log
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 08:06 AM
11-03-2004 08:06 AM
Re: syslogd not behaving as expected
Tried it. Does not help.
I am getting to a point to think perhaps that the application I am configuring to divert its logs to a different location has some kind of a hard coding for the facility.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 08:11 AM
11-03-2004 08:11 AM
Re: syslogd not behaving as expected
syslog is particularly sensitive about the spacing between the two fields.
# sed '/^local0.debug/d' syslog.conf > /etc/syslog.copy
# echo "local0.debug\t/var/opt/SIU_01/log/sysloglocal.log" >> /etc/syslog.copy
# mv /etc/syslog.copy /etc/syslog.conf
# kill -1 `cat /var/run/syslog.pid`
syslogd expects a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 08:30 AM
11-03-2004 08:30 AM
Re: syslogd not behaving as expected
I thought I posted the same findings about the TAB a few days ago..!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 08:39 AM
11-03-2004 08:39 AM
Re: syslogd not behaving as expected
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=723241
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 08:55 AM
11-03-2004 08:55 AM
Re: syslogd not behaving as expected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 08:58 AM
11-03-2004 08:58 AM
Re: syslogd not behaving as expected
1) make sure you have the above entries for local0.notice
2) Issue the following command
# logger -p local0.notice "Hey this is a test"
# cat /var/opt/SIU_01/log/sysloglocal.log
Do you see anything in there ?- do you see atleast an empty file getting created automatically ? - did u send the HUP signal to syslogd ?
- Sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 09:07 AM
11-03-2004 09:07 AM
Re: syslogd not behaving as expected
When I send the message usinbg logger then it shows up in the /var/opt/SIU_01/log/sysloglocal.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 09:13 AM
11-03-2004 09:13 AM
Re: syslogd not behaving as expected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2004 02:09 PM
11-03-2004 02:09 PM
Re: syslogd not behaving as expected
Another nifty feature is the -v option which will show you exactly what the program used to signal syslog (facility and level). Change syslogd to add -v in /etc/inetd.conf, then signal inetd to re-read the file with inetd -c. Now, there will be a codenumber that tells the facility and level. I've attached a script which will read a syslog file and decode these numbers into readable values. Note that it scans the entire log looking for a -v code. If not enabled, syslogdecoder reports that -v logging was not found. For a long syslog, this will take a while. It's a good idea to start a new syslog file if you change syslogd options.
Bill Hassell, sysadmin