Fetching latest commit…
Cannot retrieve the latest commit at this time
|Failed to load latest commit information.|
For copyright information, please see the file COPYRIGHT in this directory or in the files of the source tree. This project was initiated on 2010-06-29 by Palard Julien See http://julien.palard.fr or ask me questions at : julien at palard in fr Compile dependencies : You will need : Package: libncurses5-dev Version: 5.7+20100313-1 $ aptitude install libncurses5-dev uthash-dev Then, to compile just type : $ make Run : You will need : $ aptitude install libncurses5 $ ./logtop Usage : logtop displays real-time count of strings recieved in standard input. I's useful for some cases, like getting the IP flooding your server : $ tail -f /var/log/apache2/access.log | cut -d' ' -f1 | logtop Or the top buzzing article of your blog : $ tail -f /var/log/apache2/access.log | cut -d' ' -f7 | grep article | logtop Development : I use a hashtable to store strings and an AVL tree to store frequencies, so I can fetch by string or fetch ordered by frequency to display the top-strings. About libavl: The libavl used here is the Ben Pfaff's one, statically build with logtop, as Ben want it to be (see INSTALL file and here : http://lists.debian.org/debian-devel/2001/07/msg01303.html) So this libavl is NOT packaged as a library for Debian, the libavl you'll found in Debian repositories is the Wessel Dankers's one.