Graylog报警配置

1.首先参照 Graylog安装入门篇,配置邮箱报警

邮件预警配置
transport_email_enabled = true
transport_email_hostname = smtp.exmail.qq.com
transport_email_port = 465
transport_email_use_auth = true
transport_email_auth_username = [email protected]
transport_email_auth_password = AzCYxxxxxxf5Bm
transport_email_subject_prefix = [graylog]
transport_email_from_email = [email protected]
transport_email_use_tls = false
transport_email_use_ssl = true
可选http通知
transport_email_web_interface_url = http://graylog.example.com

1.设置告警通知

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

猜你喜欢

转载自blog.csdn.net/dyangel2013/article/details/119184387
今日推荐