|
NAMELogstalgia - a web server access log visualization toolSYNOPSISlogstalgia [options] logfileDESCRIPTIONlogstalgia is a visualization tool that replays or streams web server access logs as a retro arcade game simulation.REQUIREMENTSlogstalgia's display is rendered using OpenGL and requires a 3D accelerated video card to run.Logstalgia supports several standardized access.log formats used by web servers such as Apache and Nginx (see 'SUPPORTED LOG FORMATS' below). As logstalgia is designed to playback logs in real time you will need a log from a fairly busy webserver to achieve interesting results (eg 100s of requests each minute). OPTIONS
EXAMPLESWatch an example access.log using the default settings:logstalgia /usr/local/share/logstalgia/example.log Watch the live access.log, starting from the most recent batch of entries in the log (requires tail). Note than '-' at the end is required for logstalgia to know 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 FORMATSLogstalgia 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. CUSTOM LOG FORMATLogstalgia 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). RECORDING VIDEOSSee the guide on the homepage for examples of recording videos with Logstalgia:https://github.com/acaudwell/Logstalgia/wiki/Videos INTERFACEThe time shown in the top left of the screen is set initially from the first log entry read and is incremented according to the simulation speed (-s).The counter in the bottom right hand corner shows the number of requests displayed since the start of the current session. Pressing space at any time will pause/unpause the simulation. While paused you may use the mouse to inspect the detail of individual requests. You can click on summarizer group entries on the left and right side of the screen to filter to requests matching that entry. Click on the filter description to remove the filter. 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 AUTHORWritten by Andrew Caudwell Project Homepage: http://logstalgia.io COPYRIGHTCopyright (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/>. ACKNOWLEDGEMENTSCatalyst IT (catalyst.net.nz) For supporting the development and promotion of Logstalgia! Visit the GSP FreeBSD Man Page Interface. |