{"id":20476371,"url":"https://github.com/evemilano/loggame","last_synced_at":"2026-04-21T13:32:10.668Z","repository":{"id":247381564,"uuid":"825689750","full_name":"evemilano/LogGame","owner":"evemilano","description":"This project is a graphical application built with Pygame that visualizes real-time web server log data. By connecting to a remote server via SSH and tailing the Nginx access log, it dynamically displays client requests and server responses. Each client is represented as a dot on the screen, with lines illustrating requests and responses.","archived":false,"fork":false,"pushed_at":"2024-07-08T10:53:19.000Z","size":172,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T14:47:46.499Z","etag":null,"topics":["analysis","apache","log","logging","logstalgia","monitoring","nginx","python","server","system"],"latest_commit_sha":null,"homepage":"https://www.evemilano.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evemilano.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-08T10:17:02.000Z","updated_at":"2024-07-08T10:53:22.000Z","dependencies_parsed_at":"2024-07-08T13:21:40.654Z","dependency_job_id":null,"html_url":"https://github.com/evemilano/LogGame","commit_stats":null,"previous_names":["evemilano/loggame"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/evemilano/LogGame","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evemilano%2FLogGame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evemilano%2FLogGame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evemilano%2FLogGame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evemilano%2FLogGame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evemilano","download_url":"https://codeload.github.com/evemilano/LogGame/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evemilano%2FLogGame/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32094390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analysis","apache","log","logging","logstalgia","monitoring","nginx","python","server","system"],"created_at":"2024-11-15T15:20:05.307Z","updated_at":"2026-04-21T13:32:10.649Z","avatar_url":"https://github.com/evemilano.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Server Log Monitor Game\n![LogGame](Xh7KgljWfS.png)\n\nThis project is a graphical application built using Pygame to visualize real-time web server log data. It reads log entries from a remote server, parses them, and represents each client request graphically. This can be useful for understanding the traffic and behavior of a web server in a dynamic and interactive way.\n\n## Features\n\n- Real-time log monitoring: Connects to a remote server via SSH and tails the Nginx access log.\n- Graphical representation: Displays clients as dots and their requests as lines moving towards the server.\n- Status indication: Uses different colors to represent the status of requests (successful, redirects, client errors, server errors).\n- Interactive interface: Provides a real-time, animated view of web server activity.\n\n## Requirements\n\n- Python 3.x\n- Pygame\n- Paramiko\n\n## Installation\n\n1. Clone the repository:\n   git clone https://github.com/evemilano/LogGame.git\n   cd web-server-log-monitor-game\n\n2. Install the dependencies:\n   pip install pygame paramiko\n\n3. Setup your configuration:\n   Modify the variables log_file, ip, user, and keys_folder in the script to match your server's details.\n\n## Configuration\n\n- log_file: Path to the log file on the remote server (e.g., `/var/log/nginx/access.log`).\n- ip: IP address of the remote server.\n- user: Username for SSH login.\n- keys_folder: Directory containing SSH keys to authenticate with the remote server.\n\n## Usage\n\n1. Run the script:\n   python log_monitor.py\n\n2. Interactive visualization:\n   - The server is represented by a circle at the center of the screen.\n   - Clients appear as small dots scattered around the server.\n   - Lines indicate requests moving from clients to the server, with colors changing based on the response status.\n\n## Code Explanation\n\n- Pygame Initialization: Initializes the Pygame library and sets up the screen dimensions and colors.\n- Client Class: Represents a client, holding its position and requests.\n- Request Class: Represents a request, handling its animation and status display.\n- SSH Key Finder: Attempts to connect to the server using available SSH keys and selects the correct one.\n- Log Monitor: Connects to the remote server, tails the log file, and parses log entries.\n- Flash Server: Changes the server's color to indicate the presence of client or server errors.\n- Main Loop: The main game loop that updates and renders the graphical elements.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\nMade by https://www.evemilano.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevemilano%2Floggame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevemilano%2Floggame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevemilano%2Floggame/lists"}