VMware Cloud Community
samana_hyperic
Contributor
Contributor

How can monitor the log in some server?

Hi All ,
In my project I want to monitor some application 's log in some server(solaris,linux,windows ,etc), How can I write the log plugin for HQ enterpise ?
I checked the following URL:
http://support.hyperic.com/display/DOC/Log+Tracking#LogTracking-LogMessageswithLog4jLevels

http://support.hyperic.com/display/DOC/Log+File+Tracking+Plugin

My problem is the app log maybe not just log4j or system log(win32,linux).They are just app's log (some may be just so many format of *.log, *.xml, *.error,etc). How can write the log track plugin xml ? For example , I want check the error and warn info in these log, how do I do?

Thank you first!


BR,
Smith
0 Kudos
3 Replies
admin
Immortal
Immortal

Hi,

The defailt log file tracking plugin will track every line in the log file as error regardless of format. I know this is a bit confusing from the docs.

You can write your own custom log file tracking code if you need customized logging. The weblogic plugin has an example of how to do this. http://svn.hyperic.org/projects/hq/trunk/plugins/weblogic/src/org/hyperic/hq/plugin/weblogic/Weblogi...
samana_hyperic
Contributor
Contributor

thanks!
0 Kudos
lukevn
Contributor
Contributor

Thanks for the post. This information is very useful for me as I just start to learn about blog commenting.

Message was edited by: lukevn
0 Kudos