- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Filtering just the error messages from syslog....
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
08-13-2001 02:21 AM
08-13-2001 02:21 AM
Filtering just the error messages from syslog.log file
I would like to know if there is a way to filter only the error messages from syslog.log file.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2001 02:31 AM
08-13-2001 02:31 AM
Re: Filtering just the error messages from syslog.log file
If you mean "on the fly" filtering to another file, check this current forum thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xf16e87dc4d7dd5118ff00090279cd0f9,00.html
You could always create another entry in syslog.conf to only trap errors and above to another file:
*.err;mail.none /var/adm/syslog/syslog.errors
This will ignore mail entries. Don't forget selector and filename is TAB separated. Then send the syslogd a HUP signal.
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2001 03:45 AM
08-13-2001 03:45 AM
Re: Filtering just the error messages from syslog.log file
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x0597c3d7fb78d4118fef0090279cd0f9,00.html
Just a thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2001 06:13 AM
08-13-2001 06:13 AM
Re: Filtering just the error messages from syslog.log file
Just insert the below line in your cron:
01,31 * * * * /usr/sbin/dmesg - >> /mydir/log/fichero.log
This command append the new error messages (only) to fichero.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2001 12:45 AM
08-14-2001 12:45 AM
Re: Filtering just the error messages from syslog.log file
Try this command:
egrep -i 'fail|error|warn|alert' /var/adm/syslog/syslog.log > /tmp/err.log
Jirid