Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 1.09 KB

File metadata and controls

46 lines (37 loc) · 1.09 KB

Module 070: Milestone Project: Log File Analyzer

  • Phase: 7. Modules, Stdlib & Testing
  • Duration: 3 hours
  • Milestone: Yes

Learning Objectives

  • Build a complete CLI tool from scratch
  • Parse structured and unstructured log files
  • Filter log entries by date range and severity
  • Use regular expressions to extract patterns
  • Export summary results to formatted output
  • Practice all Phase 7 topics (JSON, context managers, modules, stdlib, regex, logging)

Topics Covered

  • Reading and parsing log files line by line
  • Extracting timestamp, level, and message fields with regex
  • Counting log entries by severity level
  • Filtering entries by date range
  • Displaying summary statistics
  • Identifying error patterns (IPs, exception types, etc.) with regex
  • Exporting results to JSON and text
  • sys.argv for CLI argument parsing

Project Structure

module-070-mini-project-log-analyzer/
  README.md
  notebook.ipynb
  exercises.md
  solutions.md
  solutions.py
  quiz.md
  project/
    README.md
    starter_code.py
    solution/
      log_analyzer.py

Next Module

Module 071