- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Want only specific syslog severity levels dire...
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
Discussions
Discussions
Forums
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
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-22-2009 02:30 PM
тАО04-22-2009 02:30 PM
Want only specific syslog severity levels directed to a file
In HP-UX it appears that there is no way to do this. If one specifies *.warning, then everything at warning level and above get captured and directed to where the syslog.conf entry places them.
Is this true?
Is there some wat one can specify that only messages at warning level can be directed to a specific place?
Thanks.
Michael Lampi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 09:06 PM
тАО04-22-2009 09:06 PM
Re: Want only specific syslog severity levels directed to a file
http://docs.hp.com/en/B2355-60130/syslogd.1M.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 07:49 AM
тАО04-23-2009 07:49 AM
Re: Want only specific syslog severity levels directed to a file
As I said, in HP-UX it appears that you can't select a specific severity level to direct to a file, e-mail message, etc. The only mechanisms appear to be "severity level and above".
I was just hoping that there was something I was missing from reading the man pages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 10:51 AM
тАО04-23-2009 10:51 AM
Re: Want only specific syslog severity levels directed to a file
HPUX does similar, depending on how you set things up. One way is to set up your syslog.conf file to send different levels of alerts to where you want/how you want.
For example:
*.alert /var/adm/syslog/syslog.log
root
@server9
*.emerg *
*.warn /var/adm/syslog/syslog.log
*.lbolt @server9
OK...above sends all alerts to the syslog file, a message to root and sends it to server.
In our case, that is the mgmt server that watches for specific info the syslog file on that box and emails the appropriate folks.
We centralize messaging this way.
.emerg sends to everyone
.warn just send a msg to syslog.log on the local box
.lbolt sends the msg over to server9
Again for it to check and email the right folks.
You can get the info on severity levels from man syslog 3c.
Hope this helps.
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 02:24 PM
тАО04-23-2009 02:24 PM
Re: Want only specific syslog severity levels directed to a file
What you are suggesting is not what I had in mind, either. I am aware of being able to specify different locations and methods of delivery.
There is a way in Linux to say that ONLY messages with the warning severity shall go to
This is the behavior what I want.
Unfortunately, however, in HP-UX so far as I can tell, you can only specify the lowest severity level of the messages that will go to that place. Higher severity levels than the one you explicitly define will also go to that place.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 09:32 PM
тАО04-23-2009 09:32 PM
Re: Want only specific syslog severity levels directed to a file
IF HP-UX does the processing in order, you can use C++ STL tricks to implement operator== by only operator<.
*.err default?
*.warning where you want it special ...
So if errors and above to somewhere, then warnings will only go to that line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2009 09:50 AM
тАО04-28-2009 09:50 AM
Re: Want only specific syslog severity levels directed to a file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2009 09:47 AM
тАО04-30-2009 09:47 AM