Why Build a Log Analyzer in C++?
I wanted a project that connected the C++ I was learning in college with the cybersecurity concepts I was studying outside of class.
Authentication logs are one of the first places you look for suspicious login attempts or brute-force scans on Linux, so writing a parser from scratch felt like a practical way to learn both.
Safe Test Data & Modular Design
Sentinel ships with a fabricated sample log (auth_sample.log) modeled on Linux authentication events so every parser and detection check can be tested reproducibly without exposing real server records.
So far, I've focused on building a clean foundation before layering detection rules on top:
- Interactive command-line menu with input validation so bad input never breaks the CLI loop
- Modular function structure separating menu control, file I/O, and future parsing/detection passes
- Line-by-line .log file ingestion ready for structured parsing
What It Needs to Do Next
The end goal is straightforward: read in a .log file, flag suspicious IP-based login patterns, and print a clean security report:
- Parse structured fields (timestamp, service, username, source IP, accept/fail status)
- Track failed login attempts per IP and flag brute-force bursts
- Generate a readable security report summarizing top offending IPs and targeted accounts
- Test against real journalctl / auth log exports from my Fedora server