Build a Configurable Python Log Normalizer
Create a Python tool that converts mixed local log formats into consistent JSON records.
Create a Python tool that converts mixed local log formats into consistent JSON records.
Prepare 20m · Build 110m · Verify 30m · Document 20m
Work only inside the folder created by Smartphone-Academy.py prepare python-log-normalizer. Use the supplied samples, your own phone, or systems you are explicitly authorized to 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 python-log-normalizerNo root. Keep the workspace under $HOME and avoid personal identifiers in evidence.Practical mission
- Define a small schema for timestamp, level, source and message
- Parse at least two supplied log formats without crashing on malformed lines
- Write normalized JSON Lines output and a rejected-record file
- Test repeatability and document assumptions about time zones and encoding
A tested Python normalizer, sample output and error-handling notes.
Quality gate
Analyst reflection
Which result from “Test repeatability and document assumptions about time zones and encoding” needs stronger evidence before it can support a real decision?
After checking the evidence, run python Smartphone-Academy.py complete python-log-normalizer. Progress is stored locally in the Termux home directory.