Net::Silk::Site - SiLK site repository configuration
Net::Silk::Site
is the interface to the local repository configuration. It can be used to make queries about sensor and class types, as well as find flow files present in the repository.
The following are available via the :all
export tag.
True if the repository site configuration file is present and has been successfully loaded.
Initializes site configuration to a different root data directory and/or site config file in order to override the values determined by environment variables or the default. Must be called prior to invoking any query functions. Site initialization will be invoked automatically, if it hasn't yet been invoked, when any query functions are called.
Returns the currently defined repository data directory.
Returns the currently defined site configuration file.
Returns the default flow class.
Returns the default flow types.
Return a list of defined sensor names.
Return a list of defined class names.
Return a list of defined type names.
Return a list of class/flowtype pairs.
Return a list of classes for the given sensor name.
Return a list of sensors pertaining to the given class name.
Return the numeric sensor id for the given sensor name.
Return the sensor name for the given numeric sensor id.
Return the sensor description, if any, for the given sensor name.
Return the numeric id for the given class/flowtype name pair.
Return the class and flowtype names, as a list, given the numeric classtype id.
Return a subroutine reference representing an interator over repository files matching the given criteria. The function takes the following keyword arguments:
The starting time of interest, given either as a DateTime object or as seconds since the epoch. If only a start time is given and it has a resolution to the day, that entire day is queried. Otherwise, the given hour is queried.
The end time of interest, given either as a DateTime object or as seconds since the epoch.
An array ref containing a list of sensors over which to limit the query.
A hash ref containing class/type pairs over which to limit the query.
A flag indicating whether to include files missing from the repository in query results.
Net::Silk, Net::Silk::RWRec, Net::Silk::IPSet, Net::Silk::Bag, Net::Silk::Pmap, Net::Silk::IPWildcard, Net::Silk::Range, Net::Silk::CIDR, Net::Silk::IPAddr, Net::Silk::TCPFlags, Net::Silk::ProtoPort, Net::Silk::File, sensor.conf(5), silk(7)
Copyright (C) 2011-2016 by Carnegie Mellon University
Use of the Net-Silk library and related source code is subject to the terms of the following licenses:
GNU General Public License (GPL) Rights pursuant to Version 2, June 1991 Government Purpose License Rights (GPLR) pursuant to DFARS 252.227.7013
NO WARRANTY
See GPL.txt and LICENSE.txt for more details.