SOFTWARE ENGINEERING / CASE STUDY

Log Anomaly Watcher.

Rule-based log anomaly detection. Logs arrive over HTTP, are grouped by error signature, and spikes or first-time errors are flagged with plain statistical rules.

Open source Engineering & Implementation
Explore the project
01 / THE PROJECT

The bigger picture.

Every project starts with a problem. The engineering is in how you solve it.

01 OVERVIEW
PROJECT OVERVIEW

A small Node.js and TypeScript service with an Express API. Logs are fingerprinted and grouped by signature, then compared against a baseline with plain statistical rules, no black-box model. A minimal dashboard lists current anomalies and top signatures. Storage is in-memory for development or PostgreSQL for durable use.

02 / CONTRIBUTION

My role in the build.

The responsibilities, technical decisions, and engineering work behind this project.

ENGINEERING RESPONSIBILITIES

Sole developer — design, implementation, tests and documentation.

03 / CAPABILITIES

What it brings together.

The key capabilities and components that make this solution work.

01

HTTP log ingestion for single logs, arrays or batches

02

Fingerprinting that normalises IDs, IPs and numbers before hashing

03

Spike detection against a previous-hour baseline with a configurable multiplier

04

New-signature detection with a 24-hour lookback

05

Severity levels: medium, high and critical

06

Minimal dashboard listing anomalies and top signatures

07

In-memory store for development, Postgres store for durable use

04 / SYSTEM DESIGN

Under the hood.

A closer look at the technical structure and decisions powering the solution.

TECHNICAL BREAKDOWN

Architecture & engineering.

An Express API validates and fingerprints incoming logs, then stores events through a store interface with two implementations: an in-memory store for development and tests, and a Postgres store for durable use. Detection is a pure function of stored events and runs on read, so it is unit-tested without a database.
05 / TECHNOLOGY STACK

The tools behind the work.

Technologies selected to build, power, and support the project.

Node.js TypeScript Express PostgreSQL Docker
A NOTE ON THIS PROJECT

The detector and its tests are verified locally (12 tests passing). The Postgres and Docker paths have not been run live, and new-signature detection currently applies to every log level, not only errors.

View on GitHub

KEEP EXPLORING

Engineering is more than writing code.

Discover more projects, technical decisions, and solutions built through practical engineering.

Explore all projects