kibana日志告警
发表于:2025-12-05 作者:千家信息网编辑
千家信息网最后更新 2025年12月05日,1.下载相应版本的sentinl wget https://github.com/sirensolutions/sentinl/releases/download/tag-6.6.1/sentin
千家信息网最后更新 2025年12月05日kibana日志告警
1.下载相应版本的sentinl
wget https://github.com/sirensolutions/sentinl/releases/download/tag-6.6.1/sentinl-v6.6.1.zip
2.kiban集成安装插件
kibana-plugin install file:///home/cloud/software/sentinl-v6.6.1.zip
3.配置邮件
sentinl: settings: email: active: true user: l用户名 password: 邮箱客户端授权码 host: smtp.exmail.qq.com ssl: true port: 465 timeout: 10000
4.重启kibana
systemctl restart kibana
5.kibana设置
6.查看高级配置
{ "actions": { "email_html_alarm_76b83c8f-0f4a-4db5-8a15-185933e17ca2": { "name": "项目credit-manager日志告警", "throttle_period": "2m", "email_html": { "stateless": false, "subject": "项目credit-manager日志告警", "priority": "medium", "html": "Hi {{watcher.username}}
\nThere are {{payload.hits.total}} results found by the watcher {{watcher.title}}.
\n\n\n
\n This watcher sends alerts based on the following criteria:
\n - {{watcher.wizard.chart_query_params.queryType}} of {{watcher.wizard.chart_query_params.over.type}} over the last {{watcher.wizard.chart_query_params.last.n}} {{watcher.wizard.chart_query_params.last.unit}} {{watcher.wizard.chart_query_params.threshold.direction}} {{watcher.wizard.chart_query_params.threshold.n}} in index {{watcher.wizard.chart_query_params.index}}
\n\n\n\n异常信息如下:\n{{#payload.hits.hits}} {{_source.message}} \n \n \n{{/payload.hits.hits}} \n", "to": "w67307788@163.com", "from": "lii@linccc.com" } }, "Webhook_f3303006-a643-42f6-a2ff-8d4066d18c3a": { "name": "项目credit-manager日志告警", "throttle_period": "2m", "webhook": { "priority": "medium", "stateless": false, "method": "POST", "host": "oapi.dingtalk.com", "port": "443", "path": "/robot/send?access_token=token", "body": "{\r\n \"msgtype\": \"markdown\",\r\n \"at\": {\r\n \"isAtAll\": \"True\"\r\n },\r\n \"markdown\": {\r\n \"title\": \"异常消息\",\r\n \"text\": \" credit-manager项目异常日志: \\n {{#payload.hits.hits}} {{_source.message}} \r\n \r\n{{/payload.hits.hits}}\"\r\n }\r\n}", "params": { "watcher": "{{watcher.title}}", "payload_count": "{{payload.hits.total}}" }, "headers": { "Content-Type": "application/json" }, "message": "credit-manager项目生产环境异常", "use_https": true } } }, "input": { "search": { "request": { "index": [ "credit-manager-*" ], "body": { "query": { "bool": { "must": { "match": { "message": "ERROR" } }, "filter": { "range": { "@timestamp": { "gte": "now-3m/m", "lte": "now/m", "format": "epoch_millis" } } } } }, "size": 2, "aggs": { "dateAgg": { "date_histogram": { "field": "@timestamp", "time_zone": "Asia/Shanghai", "interval": "1m", "min_doc_count": 1 } } } } } } }, "condition": { "script": { "script": "payload.hits.total >= 1" } }, "trigger": { "schedule": { "later": "every 1 minutes" } }, "disable": false, "report": false, "title": "credit-manager项目告警", "wizard": {}, "save_payload": false, "spy": false, "impersonate": false}测试:
项目
日志
配置
高级
信息
客户
客户端
插件
消息
版本
环境
用户
用户名
邮件
邮箱
测试
生产
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
网络安全反电信诈骗
网络技术员应该做什么
c web中怎么访问数据库
企业web服务器有哪些
光网络技术视频教程
模拟农场22怎么连接服务器
关于网络安全手抄报超难
今日头条显示服务器升级中
软件开发网站可以做吗
网络安全工程师真实攻防
国外服务器 恒创科技官网
软件开发和编程
网络安全技术服务认证
数据库 性能指标 读写
互联网思维和科技思想
招收软件开发设计学徒
广东旅游软件开发方案
向军数据库作品欣赏
东城区进口软件开发操作
ug许可证服务器可以共享吗
关于国家网络安全日的手抄报
数据库开发培训班
优合信网络技术有限公司
网络安全学习教育平台
服务器硬盘热插拔
国家倡导扶持网络安全
县直单位网络安全总结
网络安全五防是指什么
德宏盈江网络安全等级保护
金融诈骗 网络安全