Skip to content

Repository containing Jupyter Notebooks with solutions for Python scripting and data manipulation challenges.

Notifications You must be signed in to change notification settings

JairMoz/User_Session_Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

User Session Tracker (Log Parsing)

Google IT Automation Python

This repository contains the final solution for a critical log parsing challenge from the Google IT Automation with Python Professional Certificate.

🎯 Project Goal

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.

πŸ’‘ Key Skills Demonstrated

  • 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 Event class and dedicated functions (current_users, generate_report).
  • Log File Processing: Fundamental skill in IT automation and system administration.

πŸ“πŸ“ Files Info:

  • 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.

About

Repository containing Jupyter Notebooks with solutions for Python scripting and data manipulation challenges.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published