iptraffic_lanstat = { # IPTraffic LAN Statistics Log # The name of the log format log.format.format_label = "IP Traffic LAN Statistics Log" log.miscellaneous.log_data_type = "generic" log.miscellaneous.log_format_type = "network_device" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^[A-Z][a-z][a-z] [A-Z][a-z][a-z] *[0-9]+ [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9]; [*]* LAN traffic monitor" # The format of dates and times in this log log.format.date_format = "mmm dd hh:mm:ss yyyy" log.format.time_format = "mmm dd hh:mm:ss yyyy" # log.format.time_format = "hh:mm:ss" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Log fields log.fields = { date_time = { label = "$lang_stats.field_labels.date_time" type = "date_time" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # date_time ethernet_address = { label = "$lang_stats.field_labels.ethernet_address" type = "flat" index = 0 subindex = 0 } # ethernet_address incoming_bytes = { label = "$lang_stats.field_labels.incoming_bytes" type = "flat" index = 0 subindex = 0 } # incoming_bytes outgoing_bytes = { label = "$lang_stats.field_labels.outgoing_bytes" type = "flat" index = 0 subindex = 0 } # outgoing_bytes incoming_packets = { label = "$lang_stats.field_labels.incoming_packets" type = "flat" index = 0 subindex = 0 } # incoming_packets outgoing_packets = { label = "$lang_stats.field_labels.outgoing_packets" type = "flat" index = 0 subindex = 0 } # outgoing_packets incoming_ip_packets = { label = "$lang_stats.field_labels.incoming_ip_packets" type = "flat" index = 0 subindex = 0 } # incoming_ip_packets outgoing_ip_packets = { label = "$lang_stats.field_labels.outgoing_ip_packets" type = "flat" index = 0 subindex = 0 } # outgoing_ip_packets } # log.fields # # Log Parsing Filters log.parsing_filters = { global_date = { label = "global_date" comment = "" value = "if (matches_regular_expression(entire_line, '^[A-Z][a-z][a-z] ([A-Z][a-z][a-z] *[0-9]+ [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9])')) then volatile.iptraffic_lanstat.date_time = $1; set_collected_field('', 'date_time', volatile.iptraffic_lanstat.date_time)" } # Accept on ethernet address 1 = { label = "1" comment = "" value = "accept_collected_entry_using_regexp('^()Ethernet address: ', false)" } # 1 # Parse out ethernet address 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('^()Ethernet address: (.*)$', '*KEY*,ethernet_address')" } # 2 # Parse out incoming bytes 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('^() Incoming total ([0-9]*) packets, ([0-9]*) bytes; ([0-9]+) IP packets', '*KEY*,incoming_packets,incoming_bytes,incoming_ip_packets')" } # 3 # Parse out outgoing bytes 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('^() Outgoing total ([0-9]*) packets, ([0-9]*) bytes; ([0-9]*) IP packets', '*KEY*,outgoing_packets,outgoing_bytes,outgoing_ip_packets')" } # 4 } # log.parsing_filters log_filters = { global_date = { label = "global_date" comment = "" value = "date_time = volatile.iptraffic_lanstat.global_date_time;" } } # Accept on ethernet addtess # Database fields database.fields = { date_time = { label = "$lang_stats.field_labels.date_time" log_field = "date_time" type = "string" suppress_top = 0 suppress_bottom = 3 display_format_type = "date_time" } # date_time day_of_week = { label = "$lang_stats.field_labels.day_of_week" log_field = "day_of_week" type = "string" suppress_top = 0 suppress_bottom = 2 display_format_type = "day_of_week" } # day_of_week hour_of_day = { label = "$lang_stats.field_labels.hour_of_day" log_field = "hour_of_day" type = "string" suppress_top = 0 suppress_bottom = 2 display_format_type = "hour_of_day" } # hour_of_day ethernet_address = { label = "$lang_stats.field_labels.ethernet_address" log_field = "ethernet_address" type = "string" suppress_top = 0 suppress_bottom = 2 } # ethernet_address } # database.fields database.numerical_fields = { # addresses = { # label = "$lang_stats.field_labels.addresses" # default = true # requires_log_field = false # type = "int" # display_format_type = "integer" # entries_field = true # } # addresses outgoing_bytes = { label = "$lang_stats.field_labels.outgoing_bytes" default = false requires_log_field = true log_field = "outgoing_bytes" type = "float" display_format_type = "bandwidth" } # outgoing_bytes outgoing_packets = { label = "$lang_stats.field_labels.outgoing_packets" default = false requires_log_field = true log_field = "outgoing_packets" type = "float" display_format_type = "bandwidth" } # outgoing_packets outgoing_ip_packets = { label = "$lang_stats.field_labels.outgoing_ip_packets" default = false requires_log_field = true log_field = "outgoing_ip_packets" type = "float" display_format_type = "bandwidth" } # outgoing_ip_packets incoming_bytes = { label = "$lang_stats.field_labels.incoming_bytes" default = false requires_log_field = true log_field = "incoming_bytes" type = "float" display_format_type = "bandwidth" } # incoming_bytes incoming_packets = { label = "$lang_stats.field_labels.incoming_packets" default = false requires_log_field = true log_field = "incoming_packets" type = "float" display_format_type = "bandwidth" } # incoming_packets incoming_ip_packets = { label = "$lang_stats.field_labels.incoming_ip_packets" default = false requires_log_field = true log_field = "incoming_ip_packets" type = "float" display_format_type = "bandwidth" } # incoming_ip_packets } # database.numerical_fields log.filters = { # mark_entry = { # label = '$lang_admin.log_filters.mark_entry_label' # comment = '$lang_admin.log_filters.mark_entry_comment' # value = 'hits = 1;' # } # mark_entry } # log.filters create_profile_wizard_options = { date_time_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" day_of_week = true hour_of_day = true ethernet_address = true } # report_groups } # create_profile_wizard_options not_supported = { individualhosts = true sessions = true visitors = true pageviews = true } # not_supported } # iptraffic_lanstat