in reply to Logfile analysis and automatic firewalling
So my first question is, what kind of data structure should I use to store the data collected
Sound like a job for a hash-of-arrays to me. Key is the IP address, and the elements are the number of errors and some way of tracking the time intervals between each error (perhaps the average interval is good enough?)
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Logfile analysis and automatic firewalling
by pzbagel (Chaplain) on Apr 23, 2003 at 21:00 UTC |