Skip to content

M5-5: System Log Analysis

Description

Create analyze_system_logs tool for pattern detection and error analysis.

Endpoint

POST /api/v1/tools/analyze_system_logs

Parameters

  • time_range_minutes (number): How far back to analyze
  • severity (string): debug|info|warning|error|critical
  • service (string): Optional specific service

Response Includes

  • Error summary by severity
  • Patterns detected with regex and occurrence counts
  • Top errors with sample timestamps
  • Error rate per minute
  • Affected processes/services

Features

  • Pattern detection (OOM killer, connection failures, etc.)
  • Multi-source log analysis (/var/log/syslog, docker logs)
  • Time-based error rate analysis

Estimated Effort

1.5 days