/usr/share/doc/logtop/README is in logtop 0.4.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | 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.
|