°Ô½Ã¹° 1,369°Ç
   
logstalgia (website access log visualization / ½Ç½Ã°£ ·Î±×ºÐ¼® ºñÁÖ¾ó Åø)
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2014-10-14 (È­) 10:18 Á¶È¸ : 6394
±ÛÁÖ¼Ò :
                                
Âü°í 
https://code.google.com/p/logstalgia/


News

3 April 2014

Well this hasn't happened in a while: a new Logstalgia release!
Logstalgia now uses SDL 2.0 when available, providing much better multi-monitor support.
You can also now date ranges on the command line using the --from and --to ISO_DATETIME 

options.
Various other improvements are listed below:

  • Performance improvements.
  • Multi-monitor support using SDL 2.0.
  • SDL 1.2 support is deprecated.
  • Can now specify the attribute to match the group regex (-g) against.
  • When using --sync, now catches back up after resuming from pause.
  • Added --pitch-speed option (control how fast balls travel).
  • Made default group matches case-insensitive (Sebastian Krzyszkowiak).
  • Display tokens in multi-paddle modes (Sebastian Krzyszkowiak).
  • Added window resizing and a full-screen toggle (alt-enter).
  • Take screenshots (F12).
  • Summarizer component content is now sorted.
  • IPv6 addresses now anonymized by default as well (last 64 bits).
  • New dependencies on libpng, GLEW.
  • Now requires GLM and Boost header-only libraries to build.

À¥»çÀÌÆ® ·Î±×¸¦ ºñÁÖ¾óÀûÀ¸·Î º¸¿©ÁÖ´Â Åø·Î Apache, Lighttpd, Nginxµî À¥·Î±× ºÐ¼®ÀÌ °¡´ÉÇÕ´Ï´Ù.
´Ü, OpenGLÀ» Áö¿øÇÏ´Â ºñµð¿À Ä«µå°¡ ÇÊ¿äÇϱ⿡ °¡»ó¼­¹öµî ÀÏ¹Ý ¼­¹ö»ó¿¡¼­´Â »ç¿ëÇϱⰡ Èûµç¹®Á¦°¡ ÀÖÀ¸³ª OpenGL Áö¿øÇÏ´Â PC¿¡¼­ SSH ¿ø°ÝÁ¢¼ÓÀ» ÅëÇØ ·Î±×ÆÄÀÏÀ» Àо ¸ð´ÏÅ͸µÀÌ °¡´ÉÇÕ´Ï´Ù.

ºÐ¼®´ë»ó ¼­¹ö OS: CentOS 6.5 X86_64
OpenGL Áö¿ø°¡´É ¸ð´ÏÅ͸µ PC : Ubuntu 14.04.1 LTS


logstalgia ¹ÙÀ̳ʸ® ÆÐÅ°Áö ¼³Ä¡
:: Ubuntu 
# sudo apt-get install logstalgia

:: CentOS 6.X
# curl -O http://dl.atrpms.net/el6-x86_64/atrpms/stable/atrpms-repo-6-7.el6.x86_64.rpm
# rpm -Uvh atrpms-repo-6-7.el6.x86_64.rpm
# yum install SDL-devel SDL_image-devel ftgl-devel pcre-devel libpng-devel libjpeg-devel gcc-c++ make gcc ftgl ftgl-devel SDL-devel SDL_image-devel


logstalgia ¼Ò½ºÄÄÆÄÀÏ
wget https://logstalgia.googlecode.com/files/logstalgia-1.0.3.tar.gz
tar zxvf logstalgia-1.0.3.tar.gz
cd logstalgia-1.0.3
./configure
make
make install


¿ø°ÝÁ¢¼Ó ¸ð´ÏÅ͸µ
# ssh root@192.168.30.193 tail -f /etc/httpd/logs/chonnom.com-access_log |logstalgia --sync
¡Ø ´ÙÀ̳ª¹ÍÇÑ ºñÁê¾óÀ» º¸°í½ÍÀ¸¸é...ȨÆäÀÌÁö¿¡¼­ F5 Key .......gogo.....


Example)
:: µðÆúÆ® ¼³Á¤À¸·Î ·Î±× ÆÄÀÏ ºÐ¼®
# logstalgia /var/www/apache2/access.log

:: Ç¥ÁØ ÀÔ·ÂÀ¸·Î ·Î±× Àбâ
# tail -f /var/www/apache2/access.log | logstalgia --sync

:: ¿ø°Ý ¼­¹ö¿¡¼­ ·Î±× ÆÄÀÏ ºÐ¼®
ssh °èÁ¤¸í@¼­¹ö¸í tail -f /var/www/apache2/access.log | logstalgia --sync

:: °á°ú¹°À» ºñµð¿À ÆÄÀÏ·Î ÀúÀå
$ logstalgia -1280x720 --output-ppm-stream output.ppm /var/www/apache2/access.log

:: ¿ø°Ý ¼­¹ö¿¡¼­ °á°ú¹°À» ºñµð¿À ÆÄÀÏ·Î ÀúÀå
$ ssh °èÁ¤¸í@¼­¹ö¸í tail -f /var/www/apache2/access.log | logstalgia -1280x720 --output-ppm-stream output.ppm --sync 

:: ffmpeg¸¦ »ç¿ëÇؼ­ .ppm ÆÄÀÏÀ» mp4 ÆÄÀÏ·Î º¯È¯
$ ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i output.ppm -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 logvideo.mp4




# logstalgia --help
Logstalgia v1.0.3
Usage: logstalgia [OPTIONS] FILE

Options:
  -WIDTHxHEIGHT              Set window size
  -f                         Fullscreen

  -b --background FFFFFF     Background colour in hex

  -x --full-hostnames        Show full request ip/hostname
  -s --speed                 Simulation speed (default: 1)
  -u --update-rate           Page summary update rate (default: 5)

  -g name,regex,percent[,colour]  Group urls that match a regular expression

  --paddle-mode MODE         Paddle mode (single, pid, vhost)
  --paddle-position POSITION Paddle position as a fraction of the view width

  --sync                     Read from STDIN, ignoring entries before now
  --start-position POSITION  Begin at some position in the log (0.0 - 1.0)
  --stop-position  POSITION  Stop at some position

  --no-bounce                No bouncing

  --hide-response-code       Hide response code
  --hide-paddle              Hide paddle
  --hide-url-prefix          Hide URL protocol and hostname prefix

  --disable-auto-skip        Disable 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 (default: 0.15)
  --glow-multiplier          Adjust the amount of glow (default: 1.25)
  --glow-intensity           Intensity of the glow (default: 0.5)

  --output-ppm-stream FILE Write frames as PPM to a file ('-' for STDOUT)
  --output-framerate FPS   Framerate of output (25,30,60)

FILE should be a log file or '-' to read STDIN.

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.