Visualize log files using gltail on CentOS RHEL Fedora Debian Ubuntu

Overview

View real-time data and statistics from any logfile on any server with SSH, in an intuitive and entertaining way.

FEATURES
Real-Time
Multiple logfiles on multiple servers
Configurable layout
Multiple logfile parsers
(Apache Combined, Rails, IIS, Postfix/spamd/clamd, Nginx, Squid, PostgreSQL, PureFTPD, MySQL, TShark, qmail/vmpop3d)
Custom events
Show rate, total or average
If you can ‘tail’ it, you can visualize it
Written in Ruby using net-ssh, chipmunk & ruby-opengl
Free! (GPLv2)

Source http://www.fudgie.org/

Visualize log files using gltail on CentOS RHEL Fedora Debian Ubuntu

On CentOS RHEL Fedora

On Debian Ubuntu

Install ruby and required gems

Pull gltail from github

Edit the configuration file, add sites to it, you can add multiple sites, for example if you have postfix, apache, mysql server all these can be added as sites.

Sample conf for my machine, I have added the host ip, username, password and the log file, also the parser is set to apache, there are about 18 parsers to choose from. I am using just 1 site named site1, the second site named rails was commented by me, you can edit this one according to your environment or add more sites to it, giving different colors to different sites would mean you can differentiate among the logs easily on gltail screen.

servers:
site1:
host: 192.168.209.236
user: root
password: SecretPassword
command: tail -f -n0
files: /var/log/httpd/access_log
parser: apache
color: 0.2, 1.0, 0.2, 1.0
# rails:
# gateway: gw-server.anotherfunsite.com
# host: anotherfunsite.com
# user: anotherfunuser
# port: 222
# command: tail -f -n0
# files: /var/www/apps/funapp/current/log/production.log
# parser: rails
# color: 0.2, 0.2, 1.0, 1.0
# ....more configuration goes here

Execute gltail with config file

To check for available options

To check available parsers

gltail01 300x187 Visualize log files using gltail on CentOS RHEL Fedora Debian Ubuntu

Here is a short video demonstrating gltail in action, this was run under a test environment trust me this looks good visualizing production logs with lot of traffic to play with.

You may also like

Visualize logs using logstalgia on CentOS RHEL Fedora Debian Ubuntu