Logstalgia(1)
๐ Logstalgia(1) โ the group chat version ๐
okay bestie, welcome to the Logstalgia(1) manual page, from the General Commands Manual section. this is the whole thing, vibes intact, facts untouched. let's go ๐
โจ NAME โจ
Logstalgia โ a web server access log visualization tool. that's it. that's the girl. she takes your boring log files and makes them aesthetic ๐
๐ธ SYNOPSIS ๐ธ
logstalgia [options] logfile
๐ฆ DESCRIPTION ๐ฆ
logstalgia is a visualization tool that replays or streams web server access logs as a retro arcade game simulation. like, your Apache log becomes Pong. for real. it's giving arcade cabinet energy and honestly? iconic. ๐
๐ REQUIREMENTS ๐
logstalgia's display is rendered using OpenGL, so you need a 3D accelerated video card to run it. no GPU, no game, sorry bestie ๐ญ
Logstalgia supports several standardized access.log formats used by web servers such as Apache and Nginx (peep the SUPPORTED LOG FORMATS section below, it's right there).
and like โ because logstalgia is designed to playback logs in real time, you need a log from a fairly busy webserver to get interesting results. we're talking 100s of requests each minute. a sleepy little blog with three hits a day? she'll just sit there. tragic. ๐
๐ OPTIONS ๐
-fโ Fullscreen. big screen energy.-WIDTHxHEIGHTโ Set the window size. if-fis also supplied, it'll attempt to set the video mode to this too. add a!to make the window non-resizable.--screen SCREENโ Set the number of the screen to display on.--high-dpiโ Request a high DPI display when creating the window.
on some platforms, like MacOS, the window resolution is specified in points instead of pixels. the --high-dpi flag may be required to access some higher resolutions.
e.g. requesting a high DPI 800x600 window may produce a window that is 1600x1200 pixels. math is math. โจ
--window-position XxYโ Initial window position on your desktop, which may be made up of multiple monitors.
heads up: this will override the screen setting, so don't specify both. pick a lane bestie ๐ซถ
--framelessโ Frameless window. she's naked. no border. ๐--title TITLEโ Set a title.-b,--backgroundโ Background colour in hex.-x,--full-hostnamesโ Show full request ip/hostname.-s,--simulation-speedโ Simulation speed. defaults to1(1 second-per-second).-p,--pitch-speedโ Speed balls travel across the screen (defaults to0.15).-u,--update-rateโ Page Summary update speed. defaults to5(5 seconds).-g
name,(HOST|URI|CODE)=regex[,SEP=chars][,MAX=n][,ABBR=n],percent[,colour]
Creates a new named summarizer group for requests for which a specified attribute (HOST, URI or response CODE) matches a regular expression. percent specifies a vertical percentage of screen to use.
SEP=chars can specify a list of separator characters (e.g. /) to split on. the default separator is /.
MAX=n specifies the max depth into the path to be displayed. (e.g. MAX=1 would show only root directory names of paths). by default there is 0 (no limit).
ABBR=n specifies the minimum depth at which to allow partially abbreviated strings. the default is 0 (allow). -1 to disallow.
a colour may optionally be supplied in hexadecimal format (eg FF0000 for red) which will be applied to all labels and request balls matched to the group.
Examples:
-g "HTML,URI=html?$,30"
-g "Lan,HOST=^192,30"
-g "Success,CODE=^[23],30"
if no groups are specified, the default groups are Images (image files), CSS (.css files) and Scripts (.js files).
if there is enough space remaining, a catch-all group 'Misc' will appear as the last group. she's the understudy, always ready ๐
--address-separators CHARSโ List of address separator characters. defaults to'.:'.--address-max-depth DEPTHโ Maximum depth to display in address summarizer.0for no maximum.--address-abbr-depth DEPTHโ Minimum abbreviation depth of address summarizer.0to always allow abbreviations,-1to never abbreviate.--path-separators CHARSโ Default list of path separator characters. defaults to/.--path-max-depth DEPTHโ Default maximum path depth shown in the summarizer.0for no maximum.--path-abbr-depth DEPTHโ Default minimum path abbreviation depth.0to always allow abbreviations,-1to never abbreviate.--paddle-mode MODEโ Paddle mode (pid,vhost,single).vhostโ separate paddle for each virtual host in the log file.pidโ separate paddle for each process id in the log file.singleโ single paddle (the default).
--paddle-position POSITIONโ Paddle position as a fraction of the view width (0.25-0.75).--display-fields REQUEST_FIELDSโ List of one or more request fields that are shown when the user hovers the mouse over an individual request:pathโ the path of the resource requestedhostnameโ hostname or IP addressresponse_sizeโ size of the response in bytesresponse_codeโ response codemethodโ methodprotocolโ protocoltimestampโ timestamp of requestreferrerโ referrer URL of the requestuser_agentโ user agentvhostโ virtual host namelog_entryโ full log entrypidโ the pid of the instance that handled the request
separate multiple fields with commas (eg "path,hostname")
--syncโ Read from STDIN, ignoring entries before the current time.--from,--to "YYYY-MM-DD hh:mm:ss +tz"โ Show entries from a specific time period.
if a time zone offset isn't specified, the local time zone is used.
example accepted formats:
"2012-06-30"
"2012-06-30 12:00"
"2012-06-30 12:00:00 +12"
--start-position POSITIONโ Begin at some position in the log file (between0.0and1.0).--stop-position POSITIONโ Stop at some position.--no-bounceโ No bouncing. the balls just do not bounce. she's calm now ๐ง--hide-response-codeโ Hide response code.--hide-paddleโ Hide paddle.--hide-paddle-tokensโ Hide paddle tokens shown in multi-paddle modes.--hide-url-prefixโ Hide URL protocol and hostname prefix of requests.--disable-auto-skipโ Disable automatic skipping of empty time periods.--disable-progressโ Disable the progress bar.--disable-glowโ Disable the glow effect. ๐--font-size SIZEโ Font size.--glow-durationโ Duration of the glow (between0.0and1.0).--glow-multiplierโ Adjust the amount of glow.--glow-intensityโ Intensity of the glow.-o,--output-ppm-stream FILEโ Write frames as PPM to a file ('-'for STDOUT).-r,--output-framerate FPSโ Framerate of output (used with--output-ppm-stream).--load-config CONFIG_FILEโ Load a config file.--save-config CONFIG_FILEโ Save a config file with the current options.--detect-changesโ Automatically reload config file when it is modified. she's watching. always watching ๐logfileโ The path to the access log file to read, or'-'if you wish to supply log entries via STDIN.
๐ EXAMPLES ๐
watch an example access.log using the default settings:
logstalgia /usr/share/logstalgia/example.log
watch the live access.log, starting from the most recent batch of entries in the log (requires tail). note that the '-' at the end is required so logstalgia knows it needs to read from STDIN:
tail -f /var/log/apache2/access.log | logstalgia -
to follow the log in real time, use the --sync option. this will start reading from the next entry received on STDIN:
tail -f /var/log/apache2/access.log | logstalgia --sync
watch a remote access.log via ssh:
ssh user@example.com tail -f /var/log/apache2/access.log | logstalgia --sync
๐ SUPPORTED LOG FORMATS ๐
Logstalgia supports the following standardized log formats used by web servers like Apache and Nginx:
- NCSA Common Log Format (CLF)
"%h %l %u %t \"%r\" %>s %b"
- NCSA Common Log Format with Virtual Host
"%v %h %l %u %t \"%r\" %>s %b"
- NCSA extended/combined log format
"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
- NCSA extended/combined log format with Virtual Host
"%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
the process id (%P), or some other identifier, may be included as an additional field at the end of the entry. this can be used with '--paddle-mode pid', where a separate paddle will be created for each unique value in this field. one paddle per girlie ๐โจ
๐ CUSTOM LOG FORMAT ๐
Logstalgia now supports a pipe ('|') delimited custom log file format:
timestampโ unix timestamp of the request date.hostnameโ hostname of the requestpathโ path requestedresponse_codeโ the response code from the webserver (eg200)response_sizeโ the size of the response in bytes
the following are optional:
successโ1or0to indicate if successfulresponse_colourโ response colour in hexidecial (#FFFFFF) formatreferrer urlโ the referrer urluser agentโ the user agentvirtual hostโ the virtual host (to use with--paddle-mode vhost)pidโ process id or some other identifier (--paddle-mode pid)
if success or response_colour are not provided, they will be derived from the response_code using the normal HTTP conventions (code < 400 = success). no cap ๐ซถ
๐ฅ RECORDING VIDEOS ๐ฅ
see the guide on the homepage for examples of recording videos with Logstalgia:
https://github.com/acaudwell/Logstalgia/wiki/Videos
to be continued, bestieโฆ part 2 incoming ๐
๐ฎ INTERFACE ๐ฎ
okay so first thing you'll notice: top-left corner has a clock, and it gets set from the first log entry read, like, that's its whole origin story. after that it just keeps ticking forward according to your simulation speed (-s). it's giving time-lapse but make it โจaestheticโจ.
then down in the bottom-right corner there's a counter, and she's keeping receipts: that's the number of requests displayed since the start of the current session. not since forever, just since this session. periodt.
hit space literally whenever and the simulation pauses/unpauses. and when you're paused?? main character mode โ you can use the mouse to inspect the detail of individual requests ๐ฆ. like zoom in on one lil guy and see what he's about.
you can also click on summarizer group entries on the left and right sides of the screen to filter down to just the requests matching that entry. and when you're done with the filter? click the filter description to remove it. no cap, that's the whole thing ๐ .
โจ๏ธ Interactive keyboard commands โจ๏ธ
(q)โ Debug Information(c)โ Displays Logstalgia logo(n)โ Jump forward in time to next log entry.(+-)โ Adjust simulation speed.(<>)โ Adjust pitch speed.(F5)โ Reload config(F11)โ Window frame toggle(F12)โ Screenshot(Alt+Enter)โ Fullscreen toggle(Ctrl+S)โ Save config(Home/End)โ Adjust address summarizer maximum depth(Page Up/Down)โ Adjust group summarizer maximum depth(Ctrl+Home/End)โ Adjust address summarizer abbreviation depth(Ctrl+Page Up/Down)โ Adjust group summarizer abbreviation depth(ESC)โ Quit
bestie the (ESC) one is right there at the bottom and she WILL close the whole thing, so like, know that about her ๐
๐ AUTHOR ๐
Written by Andrew Caudwell ๐ซถ
Project Homepage: http://logstalgia.io
๐ COPYRIGHT ๐
Copyright (C) 2008 Andrew Caudwell (acaudwell@gmail.com)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
ok real talk, that all-caps warranty bit is not a vibe killer, it's the actual legal tea โ no warranty, so don't come for anyone if it goes sideways ๐ญ
๐ธ ACKNOWLEDGEMENTS ๐ธ
Catalyst IT (catalyst.net.nz)
For supporting the development and promotion of Logstalgia!
and that's a wrap, bestie ๐ this whole thing is the Logstalgia(1) manual page โ that's the source, version and date all chillin' in the footer like the credits at the end of a movie you actually watched all the way through. go read some logs, you icon ๐โจ
๐ฆ where this page comes from
- debian bookworm: logstalgia 1.1.4-1
- debian trixie: logstalgia 1.1.4-1+b2
- fedora 43: logstalgia 1.1.4-10.fc43 ยท GPL-3.0-or-later
- fedora 43: logstalgia 1.1.5-1.fc43 ยท GPL-3.0-or-later
- fedora 44: logstalgia 1.1.5-1.fc44 ยท GPL-3.0-or-later
- opensuse-leap 16.0: logstalgia 1.1.4-bp160.1.12 ยท GPL-3.0-or-later
- opensuse-leap 16.0: logstalgia 1.1.4-bp160.1.12 ยท GPL-3.0-or-later
- opensuse-leap 16.0: logstalgia 1.1.4-bp160.1.12 ยท GPL-3.0-or-later
- opensuse-leap 16.0: logstalgia 1.1.4-bp160.1.12 ยท GPL-3.0-or-later
- ubuntu noble: logstalgia 1.1.4-1build3
- ubuntu resolute: logstalgia 1.1.4-1build5
- ubuntu stonking: logstalgia 1.1.5-1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms