简体   繁体   English

使用WSO2 BAM和CEP进行日志监控和警报

[英]log monitor and alert using WSO2 BAM and CEP

We want to push legency system's log to BAM, and to send email to administrator if an exception occurs. 我们希望将旧系统的日志推送到BAM,并在发生异常时向管理员发送电子邮件。
Data publisher helps a lot, but I don't know about CEP. 数据发布者可以提供很多帮助,但是我对CEP并不了解。 How can I manage the email sent real time? 如何管理实时发送的电子邮件?

If you are analyzing the logs real-time, you can use WSO2 CEP with an email output event adaptor to generate notifications as emails. 如果要实时分析日志,则可以将WSO2 CEP与电子邮件输出事件适配器一起使用,以将通知生成为电子邮件。 For a sample on generating email notifications, you can refer to sample no. 有关生成电子邮件通知的示例,您可以参考示例编号。 0106 here . 0106在这里

You will have to write a query to detect exceptions in the logs here. 您将必须在此处编写查询以检测日志中的异常。 Writing a filter query with 'contains' clause may be enough if you are just detecting the occurrences of word 'exception'. 如果仅检测单词“ exception”的出现,则使用“ contains”子句编写过滤器查询就足够了。 You can find documentation on writing filters here . 您可以在此处找到有关编写过滤器的文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM