日志可视化分析

玩了两个开源的日志可视化分析软件,一个是logstalgia,另一个是maptail

maptail 安装


[code]
# install node
yum install gcc-c++ openssl-devel
wget http://nodejs.org/dist/v0.6.8/node-v0.6.8.tar.gz
tar -xvf node-v0.6.8.tar.gz
cd node-v0.6.8
./configure
make
make install

# install npm
curl https://npmjs.org/install.sh | sh

# install maptail
npm install maptail –g

# usage
# maptail -h 0.0.0.0 -p 8080 nginx_access.log

访问 http://ip:8080

[/code]


Logstalgia 安装


[code]
yum install SDL-devel SDL_image-devel ftgl-devel pcre-devel libpng10-devel libpng-devel libjpeg-devel

cd /usr/local/src/
wget https://logstalgia.googlecode.com/files/logstalgia-1.0.3.tar.gz
tar -zxf logstalgia-1.0.3.tar.gz
cd logstalgia-1.0.3
./configure
make
make install
[/code]

maptail
如果安装在服务端那么直接
logstalgia nginx_access_log
如果安装在本地客户端
ssh root@ip tail -f /var/log/nginx_access.log | logstalgia --sync
logstalgia

标签:none

评论已关闭