According to the documentation, the Events system can be used to monitor log files:
"The Events System supports event data streamed in from an agent and attached to a resource. These events can be any type of useful information and include a timestamp, a severity, the message and an event source. The event source allows for a resource to have different types of event data streamed in and allows the UI to let the user filter.
A common use of the events system is to track important log file messages. The Event System can be used to track log files for specific messages matching severity and/or expressions to get the most useful data. Included log tracking classes make it easy to support tailing log files and turning messages into RHQ events. Events could also be created from asynchronous messaging systems such as a JMX notification or a messaging provider such as JMS."
How can this be used to monitor an applicaton's log file? E.g. montioring the tail of the log file watching for Error messages.
Al Amyot | Consultant Sierra Systems
(eHealth): 204-926-4257 (T): 204-942-2575 (F): 204-942-2047 444 St. Mary Avenue, Suite 1050 Winnipeg, MB R3C 3T1
Management Consulting | System Integration | Managed Services website: www.SierraSystems.com http://www.sierrasystems.com/
This email and/or any documents in this transmission is intended for the addressee(s) only and may contain legally privileged or confidential information. Any unauthorized use, disclosure, distribution, copying or dissemination is strictly prohibited. If you receive this transmission in error, please notify the sender immediately and return the original.
Ce courriel et tout document dans cette transmission est destiné à la personne ou aux personnes à qui il est adressé. Il peut contenir des informations privilégiées ou confidentielles. Toute utilisation, divulgation, distribution, copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas le destinataire de ce message, veuillez en informer l'expéditeur immédiatement et lui remettre l'original.
For arbitrary log files that you want to track, go to the platform resource itself (the top of the tree) - each platform resource has, in the Inventory>Connection properties, an "Event Logs" section. You tell it what log file to track, the file path, etc. etc.
Note that the Linux platform resource has the ability to track remote syslog logs by listening for syslog messages over a port, or you can just track a log file. If its an arbitrary log file (not necessarily syslog) you can provide your own regular expression to use to parse your log file messagse.
On 09/03/2010 01:59 PM, Al Amyot wrote:
According to the documentation, the Events system can be used to monitor log files:
"The Events System supports event data streamed in from an agent and attached to a resource. These events can be any type of useful information and include a timestamp, a severity, the message and an event source. The event source allows for a resource to have different types of event data streamed in and allows the UI to let the user filter.
A common use of the events system is to track important log file messages. The Event System can be used to track log files for specific messages matching severity and/or expressions to get the most useful data. Included log tracking classes make it easy to support tailing log files and turning messages into RHQ events. Events could also be created from asynchronous messaging systems such as a JMX notification or a messaging provider such as JMS."
How can this be used to monitor an applicaton's log file? E.g. montioring the tail of the log file watching for Error messages. Al Amyot | Consultant Sierra Systems
(eHealth): 204-926-4257 (T): 204-942-2575 (F): 204-942-2047 444 St. Mary Avenue, Suite 1050 Winnipeg, MB R3C 3T1
Management Consulting | System Integration | Managed Services website: www.SierraSystems.com http://www.sierrasystems.com/
This email and/or any documents in this transmission is intended for the addressee(s) only and may contain legally privileged or confidential information. Any unauthorized use, disclosure, distribution, copying or dissemination is strictly prohibited. If you receive this transmission in error, please notify the sender immediately and return the original.
Ce courriel et tout document dans cette transmission est destiné à la personne ou aux personnes à qui il est adressé. Il peut contenir des informations privilégiées ou confidentielles. Toute utilisation, divulgation, distribution, copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas le destinataire de ce message, veuillez en informer l'expéditeur immédiatement et lui remettre l'original.
rhq-users mailing list rhq-users@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/rhq-users
rhq-users@lists.stg.fedorahosted.org