{"id":1351,"date":"2014-11-14T23:17:14","date_gmt":"2014-11-15T05:17:14","guid":{"rendered":"http:\/\/blog.supportpro.com\/?p=1351"},"modified":"2019-08-26T02:35:41","modified_gmt":"2019-08-26T08:35:41","slug":"logstalgia-a-website-access-log-visualisation-tool","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/logstalgia-a-website-access-log-visualisation-tool\/","title":{"rendered":"Logstalgia : A Website Access Log visualization tool"},"content":{"rendered":"<p><strong>Logstalgia<\/strong> is a visualization tool that visualize web access logs as a game simulation (as a pong like battle game between web server and requests). Requests are appeared as colored balls and travel across the screen to reach requested location. The colored ball hits the paddle if it is a successful request otherwise it misses (for e.g. if it is an error)<\/p>\n<p><strong>Requirements:<\/strong><\/p>\n<p>&gt; Its works with OpenGL (Open graphic Library) and need an accelerated 3D display to visualize<br \/>\n&gt; A web server with logs such as Apache, Lighttpd, Nginx (a busy server gives interesting result)<br \/>\n&gt; Linux operating system (eg: Ubuntu, Fedora)<!--more--><\/p>\n<p><strong>Installing Logstalgia :<\/strong><\/p>\n<p><em>$ apt-get install libsdl1.2-dev libsdl-image1.2-dev libpcre3-dev libftgl-dev libpng12-dev libjpeg62-dev<\/em><br \/>\n<em>$ wget https:\/\/logstalgia.googlecode.com\/files\/logstalgia-1.0.3.tar.gz<\/em><br \/>\n<em>$ tar \u2013xvf logstalgia-1.0.3.tar.gz<\/em><br \/>\n<em>$ cd logstalgia<\/em><br \/>\n<em>$ .\/configure<\/em><br \/>\n<em>$ make<\/em><br \/>\n<em>$ make install<\/em><\/p>\n<p><strong>Using Logstalgia<\/strong><\/p>\n<p><em>$ logstalgia access_log<\/em><br \/>\n<em>$ logstalgia \/var\/httpd\/access_log<\/em><br \/>\n<em>$ logstalgia [option] \/var\/httpd\/access_log<\/em><\/p>\n<p><strong>Save output as a video file<\/strong><\/p>\n<p><em>$ logstalgia -1280&#215;720 &#8211;output-ppm-stream output.ppm \/var\/log\/httpd\/access.log<\/em><\/p>\n<p><strong>Convert it to .mp4 format<\/strong><\/p>\n<p><em>$ ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i output.ppm -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 nginx.server.log.mp4<\/em><\/p>\n<p><strong>Controls<\/strong><\/p>\n<p>The simulation can be paused by pressing a space bar. While pausing individual requests can be inspected well.<\/p>\n<p><strong>Logstalgia Options :<\/strong><\/p>\n<p><em>logstalgia [options] logfile<\/em><\/p>\n<p>-f: Fullscreen.<\/p>\n<p>-WxH: Set the window size. If -f is also supplied, will attempt to set the video\u00a0mode to this also. Add ! to make the window non-resizable.<\/p>\n<p>-b: &#8211;background FFFFFF<br \/>\nBackground color in hex.<\/p>\n<p>-x: &#8211;full-hostnames<br \/>\nShow full request ip\/hostname.<\/p>\n<p>-s: &#8211;simulation-speed<br \/>\nSimulation speed. Defaults to 1 (1 second-per-second).<\/p>\n<p>-p: &#8211;pitch-speed<br \/>\nSpeedballs travel across the screen (defaults to 0.15).<\/p>\n<p>-u: &#8211;update-rate<br \/>\nPage Summary update speed. Defaults to 5 (5 seconds).<\/p>\n<p>(Many more options are available)<\/p>\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n<p style=\"text-align: center;\"><!--HubSpot Call-to-Action Code --><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><!-- [if lte IE 8]><\/p>\n\n\n\n\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n\n<![endif]--><a href=\"https:\/\/www.supportpro.com\/requestquote.php\"><img decoding=\"async\" id=\"hs-cta-img-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-img\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\" alt=\"Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value\" \/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '9d590242-d641-4383-94b4-8cfd62f0af6b', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Logstalgia is a visualization tool that visualize web access logs as a game simulation (as a pong like battle game between web server and requests). Requests are appeared as colored&hellip;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[5,6,1],"tags":[],"class_list":["post-1351","post","type-post","status-publish","format-standard","hentry","category-general-topics","category-linux-basics","category-miscellaneous"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=1351"}],"version-history":[{"count":7,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1351\/revisions"}],"predecessor-version":[{"id":4138,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1351\/revisions\/4138"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=1351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=1351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=1351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}