OBJECTIVE

Convert a mixed sample log into normalized records and useful counts.

TIME PLAN

Prepare 20m · Build 110m · Verify 30m · Document 20m

Working boundary

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.

Android + Termuxpython Smartphone-Academy.py prepare log-parserNo root. Use the supplied files and keep the workspace under $HOME.

Practical mission

  1. Recognize valid records and preserve source line numbers
  2. Normalize timestamps into one explicit timezone
  3. Count event types without discarding malformed lines
  4. Write rejected records to a separate review file
EVIDENCE TO PRODUCE

A parser, cleaned CSV or JSON output and an error summary.

Quality gate

The deliverable states a clear scope and date for Parse Structured Logs.
A second learner can reproduce the commands and paths.
Original samples remain unchanged and verifiable.
Limitations are recorded beside the conclusions.

Analyst reflection

Which result from “Write rejected records to a separate review file” would need more evidence before it could support an operational decision?

Complete in Termux

After checking the evidence, run python Smartphone-Academy.py complete log-parser. Progress is stored locally in the Termux home directory.

12 · Python Automation

Continue learning

Back to Smartphone Academy