게시물 1,376건
   
logstalgia (website access log visualization / 실시간 로그분석 비주얼 툴)
글쓴이 : 최고관리자 날짜 : 2014-10-14 (화) 10:18 조회 : 6539
글주소 :
                                
참고 
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.