Display real time statistics with Logtop

Logtop is a real-time log analysis tool. It can be used to understand log files. The developer describes it as “Display real time statistics of whatever you want.”. You can pass any value to it, logtop aggregate the data and show it by the number of times the data appear. Most repeated items shows on top of the list.

To install logtop on Ubuntu/Debian, run

apt install logtop -y

To see all IP address that is accessing your web server, run

tail -f access_log | awk {'print $1; fflush();'} | logtop

To see the web page that gets the most requests, run

tail -f access_log |  awk {'print $7; fflush();'} | logtop

See log

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *