Parse Structured Logs
Convert a mixed sample log into normalized records and useful counts.
Convert a mixed sample log into normalized records and useful counts.
Prepare 20m · Build 110m · Verify 30m · Document 20m
Work only inside the folder created by Smartphone-Academy.py prepare log-parser. Use the supplied samples or systems you personally administer.
Prepare the Termux workspace
Open Termux in the Academy root and prepare this lab with the local companion. It creates safe samples, notes and evidence files under your Termux account.
python Smartphone-Academy.py prepare log-parserNo root. Use the supplied files and keep the workspace under $HOME.Practical mission
- Recognize valid records and preserve source line numbers
- Normalize timestamps into one explicit timezone
- Count event types without discarding malformed lines
- Write rejected records to a separate review file
A parser, cleaned CSV or JSON output and an error summary.
Quality gate
Analyst reflection
Which result from “Write rejected records to a separate review file” would need more evidence before it could support an operational decision?
After checking the evidence, run python Smartphone-Academy.py complete log-parser. Progress is stored locally in the Termux home directory.