This repository contains the final solution for a critical log parsing challenge from the Google IT Automation with Python Professional Certificate.
The primary goal was to process raw log entries (login/logout events) to generate an accurate report of all users currently logged into various machines on a network.
- Error & Edge Case Handling: Implemented robust logic to handle invalid sequences (e.g., logouts without prior logins), preventing exceptions like
KeyError. - Data Structure Optimization: Effective use of Python's Sets for efficient tracking of active user sessions.
- OOP/Function Definition: Structured solution using the
Eventclass and dedicated functions (current_users,generate_report). - Log File Processing: Fundamental skill in IT automation and system administration.
user_session_tracker.ipynbβ The main Jupyter Notebook containing the complete code and execution output.generate_report.pyβ (Optional) Command-line script to read a log file and print/save the current-users report.