21 Dec 2009 01:29:21 UTC
- Distribution: IPTables-Log
- Module version: 0.0004
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (0 / 74 / 12)
- KwaliteeBus factor: 0
- License: unknown
- Activity24 month
- Download (8.28KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionMEH Andy Smithand 1 contributors
- Andy Smith
IPTables::Log::Set - Holds a set of IPTables::Log::Set::Record objects.
Note that this class isn't designed to be created directly. You can create these objects via a
use IPTables::Log; my $l = IPTables::Log->new; my $s = $l->create_set;
Class::Accessor - for accessor methods
Data::GUID - for GUID generation
NetAddr::IP - for the
dstmethods (required by IPTables::Log::Set::Record)
Creates a new
IPTables::Log::Setobject. This isn't the recommended way to do this, however. The proper way is to create an object via a IPTables::Log object with
Creates a new IPTables::Log::Set::Record object. This is the recommended way to create
IPTables::Log::Set::Recordobjects, as it ensures various settings are inherited from the
The text of the log entry can be passed here, or it can be passed with the
set_textaccessor method to the
Loads in logs from $filename, discarding any which don't appear to be iptables/netfilter logs. A IPTables::Log::Set::Record object is then created for each entry, and the content is then parsed. Finally, each entry is then added to the set created with
Adds a IPTables::Log::Set::Record object to a set created with
Returns a hash of record identifiers, indexed by field. Field can be one of guid, date, time, hostname, prefix, in, out, mac, src, dst, proto, spt, dpt, id, len, ttl, df, window, syn.
If you attempt to sort on a field that isn't present in all records in the set, get_by will only return records which have that field. For example, if you attempt to get_by('dpt'), any ICMP log messages will be silently excluded from the returned set.
None that I'm aware of ;-)
This module was written by Andy Smith <email@example.com>.
$Id: Set.pm 17 2009-12-15 01:36:48Z andys $
(c)2009 Andy Smith (http://andys.org.uk/)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install IPTables::Log, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install IPTables::Log
For more information on module installation, please visit the detailed CPAN module installation guide.