Syntactic Confectionery Delight | |
PerlMonks |
Re: Logfile analysis and automatic firewallingby hardburn (Abbot) |
on Apr 23, 2003 at 15:46 UTC ( [id://252600]=note: print w/replies, xml ) | Need Help?? |
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?) ---- Note: All code is untested, unless otherwise stated
In Section
Seekers of Perl Wisdom
|
|