CODESEEDSign in
Explore projects
Gointermediateai

Log Anomaly Detector

Processes log files in real-time, detects anomalies with isolation forest or z-score, and sends alerts with context.

5 steps

Project steps

  1. 01

    Log tail

    Reads log files in real-time with follow (tail -f equivalent).

  2. 02

    Feature extraction

    Parses log lines: timestamp, level, latency, error_code into numerical structures.

  3. 03

    Baseline statistics

    Calculates rolling mean and stddev for each metric over a 1000-line window.

  4. 04

    Anomaly detection

    Z-score > 3 or error rate > 10x baseline triggers an alert.

  5. 05

    Alert with context

    Sends webhook with the last 20 log lines as context + deviating metrics.

Recommended resources

Ready to build this?

Fork the repo on GitHub and start building. A mentor will review your code when you open a PR.

5 steps

Tech stack

Gogonumtailzapwebhooks