OBJECTIVE

Create a lightweight Termux workflow that rotates supplied logs, preserves hashes, and emits transparent threshold alerts without background surveillance.

TIME PLAN

Prepare 25m · Build 105m · Verify 25m · Document 25m

Working boundary

Work only inside the folder created by Smartphone-Academy.py prepare log-retention-alerting. Use the supplied fictional samples or data you are explicitly authorized to handle.

Prepare the Termux workspace

Open Termux in the Academy folder and create the safe workspace. The companion generates samples, notes, and evidence files under your account.

Android + Termuxpython Smartphone-Academy.py prepare log-retention-alertingNo root. Work only with the supplied files under $HOME.

Practical mission

  1. Define retention by file age and total storage instead of deleting files blindly
  2. Archive and hash logs before removing any disposable source copy
  3. Create threshold alerts for repeated fictional warnings and explain the chosen limits
  4. Test normal, boundary, and burst scenarios and document missed or noisy alerts
EVIDENCE TO PRODUCE

A rotate_and_alert.py program, retention-policy.md, archived samples, and alert-results.json.

Quality gate

The deliverable states a clear scope and date for “Design Local Log Retention and Threshold Alerts.”
A second learner can reproduce the commands and paths.
Original samples remain unchanged and verifiable.
Limitations and confidence are recorded beside the conclusions.

Analyst reflection

Which result from “Test normal, boundary, and burst scenarios and document missed or noisy alerts” needs additional evidence before it could support a real operational decision?

Complete in Termux

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

14 · Defensive Monitoring

Continue learning

Back to Smartphone Academy