Skip to content

fearless11/es-index-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

部署

  • 机器:10.11.100.230
  • 目录:cd /usr/local/monitor/es-index-monitor
  • 启停:sh check.sh start|stop
  • cron: /etc/cron.d/es-index-monitor

es日志监控

  • web日志: 日志状态码、日志响应耗时
  • 业务日志:错误级别数
  • gitlab日志: 用户-IP拉取次数

功能

条件: 索引为name-yyyy.MM.dd, 时间字段为@timestamp
  • 指定时间范围,字段等于特定值出现的次数超阈值告警

    count(A=xx;B=xx) > threshold in x minute

  • 指定时间范围,某个字段大于特定值出现的次数超阈值告警,可选支持排除条件

    count(A>xx) && !(B=yy;B=zz) > threshold in x minute

  • 指定时间范围,按某个字段聚合分组后,前topX出现次数超阈值告警,可选支持排除某组

    count(top(agg(A))) && !(A=xx) > threshold in 5minute

About

对elastic中业务日志进行监控

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published