Operating System - HP-UX
1839446 Members
2258 Online
110146 Solutions
New Discussion

Re: Log pattern monitoring tools

 
Henry Chua
Super Advisor

Log pattern monitoring tools

Hi guys,

I am just wondering, is there any good tools that can be used to monitor specified error code in a log from application, system etc. Thanks

Best regards
Henry
3 REPLIES 3
John Guster
Trusted Contributor

Re: Log pattern monitoring tools

most such tools are licensed. in HP world, OpenView ITO is the one able to minotoring certain pattern in a log file.
Oviwan
Honored Contributor

Re: Log pattern monitoring tools

Hey

check man grep and man regexp, you can create your own specific pattern.

Regards
Bill Hassell
Honored Contributor

Re: Log pattern monitoring tools

This is the simplest to write:

grep -i -e warn -e fail -e err -e /var/adm/syslog/syslog.log

Add any other error words or strings you might encounter. Many times, looking at a big logfile is a pain because there may be an error but it is more important to know how many times it has occurred. The attached script summarizes all the messages by counting how many times they occur.


Bill Hassell, sysadmin