Server Log Analyzer with Cats Effect
Build a tool that parses web server access logs, extracts request patterns, and reports top endpoints, status-code breakdowns, and traffic spikes. Learners practice functional I/O with Cats Effect, streaming file parsing, and building composable analysis pipelines.
- Estimate
- ~11h
- Steps
- 6
- Completed by
- 0
- Proposed by
- codeseed.app
Cats Effect · fs2
Project roadmap
- 01
Model log entries
~1.5hDefine a LogEntry case class capturing timestamp, endpoint, status code, and response time.
- 02
Parse log lines with regex
~2hWrite a parser that converts raw log lines into LogEntry values, skipping malformed lines.
- 03
Stream the log file with fs2
~2.5hUse fs2 streams and Cats Effect IO to process large log files without loading them fully into memory.
- 04
Compute aggregations
~2.5hCompute top endpoints, status-code breakdowns, and per-minute request-rate spikes.
- 05
Output a formatted report
~1hPrint the aggregated statistics as a readable terminal report.
- 06
Write unit tests
~1.5hTest the parser and aggregation logic against sample log data.
Resources
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack