Logstalgia(1)

๐Ÿ“ฆ
version 1.1.5 ยท 5 versions
, in debian bookworm, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu noble, ubuntu resolute, ubuntu stonking

๐Ÿ’– 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 -f is 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 to 1 (1 second-per-second).
  • -p, --pitch-speed โ€” Speed balls travel across the screen (defaults to 0.15).
  • -u, --update-rate โ€” Page Summary update speed. defaults to 5 (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. 0 for no maximum.
  • --address-abbr-depth DEPTH โ€” Minimum abbreviation depth of address summarizer. 0 to always allow abbreviations, -1 to 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. 0 for no maximum.
  • --path-abbr-depth DEPTH โ€” Default minimum path abbreviation depth. 0 to always allow abbreviations, -1 to 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 requested
    • hostname โ€” hostname or IP address
    • response_size โ€” size of the response in bytes
    • response_code โ€” response code
    • method โ€” method
    • protocol โ€” protocol
    • timestamp โ€” timestamp of request
    • referrer โ€” referrer URL of the request
    • user_agent โ€” user agent
    • vhost โ€” virtual host name
    • log_entry โ€” full log entry
    • pid โ€” 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 (between 0.0 and 1.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 (between 0.0 and 1.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 request
  • path โ€” path requested
  • response_code โ€” the response code from the webserver (eg 200)
  • response_size โ€” the size of the response in bytes

the following are optional:

  • success โ€” 1 or 0 to indicate if successful
  • response_colour โ€” response colour in hexidecial (#FFFFFF) format
  • referrer url โ€” the referrer url
  • user agent โ€” the user agent
  • virtual 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 (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 ๐Ÿ’–โœจ