Skip to content

Add Log Analysis Pattern-Based Alert Rules #404

Description

@maugauwi-hash

Labels: enhancement, observability
Priority: Medium
Estimated Time: 2 hours

Description:
backend/src/log_analysis.rs presumably parses/aggregates logs, but there's no configurable rule engine to alert on specific log patterns (e.g., a spike in a particular error message) beyond generic error-rate thresholds.

Tasks:

  • Add a pattern-matching rule configuration (regex or structured field match)
  • Trigger alerts via incidents.rs when a pattern's occurrence rate exceeds a threshold
  • Add tests for pattern matching and threshold-based alerting
  • Document rule authoring in docs/log-format.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions