1.首先参照 Graylog安装入门篇,配置邮箱报警
邮件预警配置 transport_email_enabled = true transport_email_hostname = smtp.exmail..com transport_email_port = 465 transport_email_use_auth = true transport_email_auth_username = transport_email_auth_password = AzCYxxxxxxf5Bm transport_email_subject_prefix = [graylog] transport_email_from_email = transport_email_use_tls = false transport_email_use_ssl = true 可选http通知 transport_email_web_interface_url = http://graylog.example.com
1.设置告警通知



下面配置触发事件条件,这里我进行测试,定义了一个简单的条件,当日志出现ERROR 关键字时触发消息通知,然后就会触发通知的配置发送报警邮件。实际情况中,具体的报警触发配置就需要自己根据实际情况进行设置。












发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/229726.html原文链接:https://javaforall.net
