On Friday, 2004-01-09 at 12:52:49 +0100, Christoffer Pio wrote:
> Can anyone recommend any software other than fwanalog that parses the ipmon
> logfile and generates statistics? fwanalog is nice but I lack statistics on
> per protocol and src-dst host correlation. Perhaps the best thing would be
> logging to a postgresql or mysql database and being able to do a wide range
> of queries.

I'm using fwlogwatch. It has lots of knops to tweak. Here is a line from
my crontab:

59 23 * * * cat /var/log/ipf.log | egrep -v -e ' -(A[RF]?P?|R) ' |
/usr/local/sbin/fwlogwatch -P f -d -N -O Dada -l 24h -S - | mailx -s
"Daily IPFilter Log" root

I'm ignoring a few types of stray lines from ipf.log with the grep. The
mail this send contains this kind of info:

fwlogwatch summary
Generated Thu Jan 08 23:59:06 CET 2004 by Charlie &.
3433 (and 25042 older than 86400 seconds) (and 28 malformed) of 28517 entries in 
standard input are packet logs, 429 have unique
+characteristics.
First packet log entry: Jan 08 00:08:01, last: Jan 08 23:55:30.
All entries were logged by the same host: "cabernet".
All entries have the same target: "b".

...
0:33 fxp0 3 tcp packets to 123.123.123.112 port 21 (ftp)
0:28 fxp0 1 tcp packet to 123.123.123.113 port 21 (ftp)
0:56 fxp0 2 tcp packets to 123.123.123.114 port 21 (ftp)
0:56 fxp0 2 tcp packets to 123.123.123.117 port 21 (ftp)
0:56 fxp0 2 tcp packets to 123.123.123.118 port 21 (ftp)
0:32 fxp0 2 tcp packets to 123.123.123.119 port 21 (ftp)
0:35 fxp0 3 tcp packets to 123.123.123.120 port 21 (ftp)
0:103 fxp1 5 tcp packets to 123.123.123.121 port 21 (ftp)
0:29 fxp0 2 tcp packets to 123.123.123.121 port 21 (ftp)
0:56 fxp0 3 tcp packets to 123.123.123.123 port 21 (ftp)
0:56 fxp0 2 tcp packets to 123.123.123.124 port 21 (ftp)
0:56 fxp0 2 tcp packets to 123.123.123.126 port 21 (ftp)
0:25 fxp0 4 tcp packets to 123.123.123.130 port 21 (ftp)
0:31 fxp0 4 tcp packets to 123.123.123.136 port 21 (ftp)
0:27 fxp0 4 tcp packets to 123.123.123.137 port 21 (ftp)
0:56 fxp0 4 tcp packets to 123.123.123.138 port 21 (ftp)
0:56 fxp0 3 tcp packets to 123.123.123.139 port 21 (ftp)
0:56 fxp0 4 tcp packets to 123.123.123.140 port 21 (ftp)
0:56 fxp0 4 tcp packets to 123.123.123.141 port 21 (ftp)
0:56 fxp0 4 tcp packets to 123.123.123.142 port 21 (ftp)
0:30 fxp0 4 tcp packets to 123.123.123.143 port 21 (ftp)
...

Note I have explicitly excluded per-source statistics.

HTH,
Lupe Christoph
-- 
| [EMAIL PROTECTED]       |           http://www.lupe-christoph.de/ |
| "Violence is the resort of the violent" Lu Tze                         |
| "Thief of Time", Terry Pratchett                                       |

Reply via email to