{"id":13773778,"url":"https://github.com/acaudwell/logstalgia","last_synced_at":"2025-04-08T00:38:27.222Z","repository":{"id":766526,"uuid":"446679","full_name":"acaudwell/Logstalgia","owner":"acaudwell","description":"replay or stream website access logs as a retro arcade game","archived":false,"fork":false,"pushed_at":"2023-05-17T02:03:17.000Z","size":4145,"stargazers_count":1769,"open_issues_count":13,"forks_count":171,"subscribers_count":85,"default_branch":"master","last_synced_at":"2025-04-08T00:38:16.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://logstalgia.io","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/acaudwell.png","metadata":{"files":{"readme":"README","changelog":"ChangeLog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2009-12-23T04:40:51.000Z","updated_at":"2025-04-03T16:00:41.000Z","dependencies_parsed_at":"2023-07-05T21:01:32.609Z","dependency_job_id":null,"html_url":"https://github.com/acaudwell/Logstalgia","commit_stats":{"total_commits":324,"total_committers":7,"mean_commits":"46.285714285714285","dds":"0.23456790123456794","last_synced_commit":"8853a406febe10854a973b598712b0e69076d0d7"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acaudwell%2FLogstalgia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acaudwell%2FLogstalgia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acaudwell%2FLogstalgia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acaudwell%2FLogstalgia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acaudwell","download_url":"https://codeload.github.com/acaudwell/Logstalgia/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247755560,"owners_count":20990620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-08-03T17:01:20.035Z","updated_at":"2025-04-08T00:38:27.200Z","avatar_url":"https://github.com/acaudwell.png","language":"C++","funding_links":[],"categories":["\u003ca id=\"58b6684347a223e01d4d76d9ca185a88\"\u003e\u003c/a\u003eReplay\u0026\u0026重播"],"sub_categories":[],"readme":"\n                             Logstalgia\n\n               a website access log visualisation tool\n\n                 Copyright (C) 2008 Andrew Caudwell\n\n                        http://logstalgia.io\n\nContents\n========\n\n1. Description\n2. Requirements\n3. Using Logstalgia\n4. Copyright\n\n1. Description\n==============\n\nLogstalgia is a visualization tool that replays or streams web server access\nlogs as a retro arcade game simulation.\n\n2. Requirements\n===============\n\nLogstalgia's display is rendered using OpenGL and requires a 3D accelerated\nvideo card to run.\n\nLogstalgia supports several standardized access.log formats used by web servers\nsuch as Apache and Nginx (see 'Supported Log Formats' below).\n\nAs Logstalgia is designed to playback logs in real time you will need a log from\na fairly  busy  webserver to achieve interesting results (eg 100s of requests\neach minute).\n\n3. Using Logstalgia\n===================\n\nlogstalgia [options] logfile\n\noptions:\n\n    -f      Fullscreen.\n\n    -WxH    Set the window size. If -f is also supplied, will attempt to set the\n            video mode to this also. Add ! to make the window non-resizable.\n\n    --screen SCREEN\n            Set the number of the screen to display on.\n\n    --high-dpi\n            Request a high DPI display when creating the window.\n\n            On some platforms such as MacOS, the window resolution is specified in points instead of pixels.\n            The --high-dpi flag may be required to access some higher resolutions.\n\n            E.g. requesting a high DPI 800x600 window may produce a window that is 1600x1200 pixels.\n\n    --window-position XxY\n            Initial window position on your desktop which may be made up of\n            multiple monitors.\n\n            This will override the screen setting so don't specify both.\n\n    --frameless\n            Frameless window.\n\n    --title TITLE\n            Set a title.\n\n    -b, --background FFFFFF\n            Background colour in hex.\n\n    -x, --full-hostnames\n            Show full request ip/hostname.\n\n    -s, --simulation-speed\n            Simulation speed. Defaults to 1 (1 second-per-second).\n\n    -p, --pitch-speed\n            Speed balls travel across the screen (defaults to 0.15).\n\n    -u, --update-rate\n            Page Summary update speed. Defaults to 5 (5 seconds).\n\n    -g name,(HOST|URI|CODE)=regex[,SEP=chars][,MAX=n][,ABBR=n],percent[,colour]\n\n            Creates a new named summarizer group for requests for which a\n            specified attribute (HOST, URI or response CODE) matches a\n            regular expression. Percent specifies a vertical percentage of\n            screen to use.\n\n            SEP=chars can specify a list of separator characters (e.g. /)\n            to split on. The default separator is /.\n\n            MAX=n specifies the max depth into the path to be displayed.\n            (e.g. MAX=1 would show only root directory names of paths). By\n            default there is 0 (no limit).\n\n            ABBR=n specifies the minimum depth at which to allow partially\n            abbreviated strings. The default is 0 (allow). -1 to disallow.\n\n            A colour may optionally be supplied in hexadecimal format\n            (eg FF0000 for red) which will be applied to all labels\n            and request balls matched to the group.\n\n            Examples:\n\n             -g \"HTML,URI=html?$,30\"\n             -g \"Lan,HOST=^192,30\"\n             -g \"Success,CODE=^[23],30\"\n\n            If no groups are specified, the default groups are Images\n            (image files), CSS (.css files) and Scripts (.js files).\n\n            If there is enough space remaining a catch-all group 'Misc'\n            will appear as the last group.\n\n    --address-separators CHARS\n            List of address separator characters. Defaults to '.:'.\n\n    --address-max-depth DEPTH\n            Maximum depth to display in address summarizer. 0 for no maximum.\n\n    --address-abbr-depth DEPTH\n            Minimum abbreviation depth of address summarizer.\n            0 to always allow abbreviations, -1 to never abbreviate.\n\n    --path-separators CHARS\n            Default list of path separator characters. Defaults to /.\n\n    --path-max-depth DEPTH\n            Default maximum path depth shown in the summarizer.\n            0 for no maximum.\n\n    --path-abbr-depth DEPTH\n            Default minimum path abbreviation depth.\n            0 to always allow abbreviations, -1 to never abbreviate.\n\n    --paddle-mode MODE\n            Paddle mode (pid, vhost, single).\n\n            vhost  - separate paddle for each virtual host in the log file.\n\n            pid    - separate paddle for each process id in the log file.\n\n            single - single paddle (the default).\n\n    --paddle-position POSITION\n            Paddle position as a fraction of the view width (0.25 - 0.75).\n\n    --display-fields REQUEST_FIELDS\n            List of one or more request fields that are shown when the user\n            hovers the mouse over an individual request:\n\n            path          - the path of the resource requested\n            hostname      - hostname or IP address\n            response_size - size of the response in bytes\n            response_code - response code\n            method        - method\n            protocol      - protocol\n            timestamp     - timestamp of request\n            referrer      - referrer of the request\n            user_agent    - user agent\n            vhost         - virtual host name\n            log_entry     - full log entry\n            pid           - the pid of the instance that handled the request\n\n            Separate multiple fields with commas (eg 'path,hostname')\n\n    --sync  Read from STDIN, ignoring entries before the current time.\n\n    --from, --to \"YYYY-MM-DD hh:mm:ss +tz\"\n            Show entries from a specific time period.\n\n            If a time zone offset isn't specified the local time zone is used.\n\n            Example accepted formats:\n\n                \"2012-06-30\"\n                \"2012-06-30 12:00\"\n                \"2012-06-30 12:00:00 +12\"\n\n    --start-position POSITION\n            Begin at some position in the log file (between 0.0 and 1.0).\n\n    --stop-position POSITION\n            Stop at some position.\n\n    --no-bounce\n            No bouncing.\n\n    --hide-response-code\n            Hide response code.\n\n    --hide-paddle\n            Hide paddle.\n    \n    --hide-paddle-tokens\n            Hide paddle tokens shown in multi-paddle modes.\n\n    --hide-url-prefix\n            Hide URL protocol and hostname prefix of requests.\n\n    --disable-auto-skip\n            Disable automatic skipping of empty time periods.\n\n    --disable-progress\n            Disable the progress bar.\n\n    --disable-glow\n            Disable the glow effect.\n\n    --font-size SIZE\n            Font size (10 - 40).\n\n    --glow-duration\n            Duration of the glow (between 0.0 and 1.0).\n\n    --glow-multiplier\n            Adjust the amount of glow.\n\n    --glow-intensity\n            Intensity of the glow.\n\n    -o, --output-ppm-stream FILE\n            Write frames as PPM to a file ('-' for STDOUT).\n\n    -r, --output-framerate FPS\n            Framerate of output (used with --output-ppm-stream).\n\n    --load-config CONFIG_FILE\n            Load a config file.\n\n    --save-config CONFIG_FILE\n            Save a config file with the current options.\n\n    --detect-changes\n            Automatically reload config file when it is modified.\n\n    logfile\n            The path to the access log file to read or '-' if you wish to\n            supply log entries via STDIN.\n\nExamples:\n\nWatch an example access.log file using the default settings:\n\n    logstalgia data/example.log\n\nWatch the live access.log, starting from the most recent batch of entries\nin the log (requires tail). Note than '-' at the end is required for logstalgia \nto know it needs to read from STDIN:\n\n    tail -f /var/log/apache2/access.log | logstalgia -\n\nTo follow the log in real time, use the --sync option. This will start reading\nfrom the next entry received on STDIN:\n\n    tail -f /var/log/apache2/access.log | logstalgia --sync\n\nWatch a remote access.log via ssh:\n\n    ssh user@example.com tail -f /var/log/apache2/access.log | logstalgia --sync\n\nSupported Log Formats:\n\nLogstalgia supports the following standardized log formats used by web servers like Apache and Nginx:\n\nNCSA Common Log Format (CLF)\n    \"%h %l %u %t \\\"%r\\\" %\u003es %b\"\n\nNCSA Common Log Format with Virtual Host\n    \"%v %h %l %u %t \\\"%r\\\" %\u003es %b\"\n\nNCSA extended/combined log format\n    \"%h %l %u %t \\\"%r\\\" %\u003es %b \\\"%{Referer}i\\\" \\\"%{User-agent}i\\\"\"\n\nNCSA extended/combined log format with Virtual Host\n    \"%v %h %l %u %t \\\"%r\\\" %\u003es %b \\\"%{Referer}i\\\" \\\"%{User-agent}i\\\"\"\n\nThe process id (%P), or some other identifier, may be included as an additional\nfield at the end of the entry. This can be used with '--paddle-mode pid' where\na separate paddle will be created for each unique value in this field.\n\n\nCustom Log Format:\n\nLogstalgia now supports a pipe ('|') delimited custom log file format:\n\n    timestamp       - unix timestamp of the request date.\n    hostname        - hostname of the request\n    path            - path requested\n    response_code   - the response code from the webserver (eg 200)\n    response_size   - the size of the response in bytes\n\nThe following are optional:\n    success         - 1 or 0 to indicate if successful\n    response_colour - response colour in hexidecial (#FFFFFF) format\n    referrer url    - the referrer url\n    user agent      - the user agent\n    virtual host    - the virtual host (to use with --paddle-mode vhost)\n    pid             - process id or some other identifier (--paddle-mode pid)\n\nIf success or response_colour are not provided, they will be derived from the\nresponse_code using the normal HTTP conventions (code \u003c 400 = success).\n\n\nRecording Videos:\n\nSee the guide on the homepage for examples of recording videos with Logstalgia:\n\n    https://github.com/acaudwell/Logstalgia/wiki/Videos\n\nInterface:\n\nThe time shown in the top left of the screen is set initially from the first log\nentry read and is incremented according to the simulation speed (-s).\n\nThe counter in the bottom right hand corner shows the number of requests\ndisplayed since the start of the current session.\n\nPressing space at any time will pause/unpause the simulation. While paused you\nmay use the mouse to inspect the detail of individual requests.\n\nYou can click on summarizer group entries on the left and right side of the\nscreen to filter to requests matching that entry. Click on the filter\ndescription to remove the filter.\n\nInteractive keyboard commands:\n\n   (C)   Displays Logstalgia logo\n   (N)   Jump forward in time to next log entry\n   (+-)  Adjust simulation speed\n   (\u003c\u003e)  Adjust pitch speed\n   (F5)  Reload config\n   (F6)  Load config (Windows only)\n   (F11) Window frame toggle\n   (F12) Screenshot\n   (Alt+Enter) Fullscreen toggle\n   (Ctrl+S) Save config\n   (Home/End)          Adjust address summarizer maximum depth\n   (Page Up/Down)      Adjust group summarizer maximum depth\n   (Ctrl+Home/End)     Adjust address summarizer abbreviation depth\n   (Ctrl+Page Up/Down) Adjust group summarizer abbreviation depth\n   (ESC) Quit\n\n\n4. Copyright\n============\n\nLogstalgia - web server access log visualization\nCopyright (C) 2008 Andrew Caudwell \u003cacaudwell@gmail.com\u003e\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program. If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facaudwell%2Flogstalgia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facaudwell%2Flogstalgia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facaudwell%2Flogstalgia/lists"}