OSETC TECH

Linux: How To Install logtop Tool To analyze Realtime Log

I would like to analyze the realtime log in my linux system. and How do I analyze line rate of realtime log under linux operating system or on your linux vps server. How to install logtop tool on debian or ubuntu linux vps server? and how to use logtop tool to analyze realtime log line rate on linux system or linux vps hosting. You will see that how to install logtop and use it in this post.

logtop tool can be used to analyze line rate of realtime log in your linux system.

Install logtop on linux or linux vps server


​You just need to run the following command to install logtop package,type:

sudo apt-get install logtop

outputs:

Reading package lists... Done Building dependency tree Reading state information... Done

The following NEW packages will be installed:   logtop

Unpacking logtop (from .../logtop_0.3-1_amd64.deb) ...

Processing triggers for man-db ...

Setting up logtop (0.3-1) ...

...

After installed logtop on your linux system or linux vps server, the typical usage pattern is below:

tail -f /log/fiename | logtop

For example, checking the real time stattistics of log file located under “/var/log/apache2/access.log“, then issue the following command:

tail -f /var/log/apache2/access.log| cut -d' ' -f1 | logtop

done …