- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: customize syslog logging
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
07-14-2005 05:37 AM
07-14-2005 05:37 AM
*.err;*.crit;*.emerg /var/adm/syslog/critical.log
I have a shell script that will parse this file. I am looking for things that would be major problems.
Is this going to give me what im looking for?
What are other sysadm's doing for something like this?
thanks!
Phil
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2005 05:46 AM
07-14-2005 05:46 AM
Re: customize syslog logging
local7 /directory/filename (Where ou want to write)
And restart syslogd daemon
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2005 05:48 AM
07-14-2005 05:48 AM
Re: customize syslog logging
thanks!
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2005 05:58 AM
07-14-2005 05:58 AM
Re: customize syslog logging
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2005 06:01 AM
07-14-2005 06:01 AM
Solutioneven better, check this page about the syslog.conf details explained a little more detailed than the syslogd man page:
http://www.scrambler.net/syslog.htm
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2005 06:03 AM
07-14-2005 06:03 AM
Re: customize syslog logging
local7.info /outputdir/filename
local7.warn /outputdir/filename
local7.err .... like this you can add
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2005 06:07 AM
07-14-2005 06:07 AM
Re: customize syslog logging
So, developers can write their code to log to them - instead of the default syslog...
Example, ftp can be set to log to local5:
local5.info;mail.none /var/adm/syslog/ftpd.log
ssh can go to local6:
local6.debug /var/adm/syslog/sshd.log
etc...
Codes are in /usr/include/syslog.h
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2005 06:17 AM
07-14-2005 06:17 AM
Re: customize syslog logging
thanks!
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2005 06:54 AM
07-14-2005 06:54 AM
Re: customize syslog logging
For example, I've configured network switches and firewalls to write throught the syslog facility on HPUX using one of the locals, I have to tell the switch [in its syslog config section] to use local0 and the IP address of the 9000 and to log everything at a warning level or higher.
I can then configure syslogd to log all events for local0 (the network stuff) to /var/adm/syslog/network_stuff.log.
From your original question, it sounds like you are trying to get messages that would normally go to syslog but with a warning level or above to go to a special file that your script can parse. If so then you wouldn't use the local stuff, but would follow your original approach.
It wasn't clear from your message if you were getting entries in critical.log or not.
It sounded like you were but wanted to know which messages should cause you concern. Is that correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2005 06:57 AM
07-14-2005 06:57 AM
Re: customize syslog logging
i have a line like this:
*.err;*.crit;*alert;*.emerg /var/adm/syslog/critical.log
i think this is all i need.
phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2005 10:09 PM
07-14-2005 10:09 PM
Re: customize syslog logging
As far as the script, if you are going to do some sort of alerting when you get a message, I would start off alerting for every message and then modify the script to ignore just those messages that you determine to be not important.
That way you will not miss a critical message that you forgot to look for in your script.