Log Anomaly Detector
智能分析日志文件,检测异常模式、错误趋势和性能问题。
功能
- 实时日志分析
- 错误模式识别 (ERROR, FATAL, Exception)
- 警告检测 (WARN, Warning)
- 性能瓶颈识别 (slow, timeout, latency)
- 安全威胁检测 (unauthorized, forbidden, injection)
- 智能建议生成
触发词
- "分析日志"
- "日志异常"
- "日志错误"
- "log analysis"
- "error detection"
实现逻辑
分析日志文件,识别以下模式:
- 错误频率统计
- 异常时间序列
- 性能下降趋势
- 安全告警
输出示例
{
"errors": [{"line": "...", "timestamp": "..."}],
"warnings": [...],
"anomalies": [...],
"recommendations": [
"错误数量过多,建议设置告警",
"检测到多次登录失败,建议检查安全"
]
}
1---2name: log-anomaly-detector3description: Log Anomaly Detector4---5# Log Anomaly Detector67智能分析日志文件,检测异常模式、错误趋势和性能问题。89## 功能1011- 实时日志分析12- 错误模式识别 (ERROR, FATAL, Exception)13- 警告检测 (WARN, Warning)14- 性能瓶颈识别 (slow, timeout, latency)15- 安全威胁检测 (unauthorized, forbidden, injection)16- 智能建议生成1718## 触发词1920- "分析日志"21- "日志异常"22- "日志错误"23- "log analysis"24- "error detection"2526## 实现逻辑2728分析日志文件,识别以下模式:29- 错误频率统计30- 异常时间序列31- 性能下降趋势32- 安全告警3334## 输出示例3536```json37{38 "errors": [{"line": "...", "timestamp": "..."}],39 "warnings": [...],40 "anomalies": [...],41 "recommendations": [42 "错误数量过多,建议设置告警",43 "检测到多次登录失败,建议检查安全"44 ]45}46```