# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. net_gear_fr328_s = { plugin_version = "1.0.1" # Initial creation - 1.0 # 2011-07-06 - 1.0.1 - MSG - Edited info lines. info.1.manufacturer = "Netgear" info.1.device = "FR328S" info.1.version.1 = "" # Note: based on log from DG814 router. # The name of the log format log.format.format_label = "NetGear FR328S Log Format" log.miscellaneous.log_data_type = "syslog_required" 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 = "[0-9][0-9][0-9][0-9] [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]+\\.[0-9] (UDP|TCP)" # A log entry is a packet statistics.miscellaneous.entry_name = "packets" statistics.miscellaneous.visitor_name = "unique source IP" # Log fields log.fields = { device_name = { label = "$lang_stats.field_labels.device_name" type = "flat" index = 0 subindex = 0 } # device_name device_ip = { label = "$lang_stats.field_labels.device_ip" type = "flat" index = 0 subindex = 0 } # device_ip operation = { label = "$lang_stats.field_labels.operation" type = "flat" index = 0 subindex = 0 } # operation source_ip = { label = "$lang_stats.field_labels.source_ip" type = "host" index = 0 subindex = 0 hierarchy_dividers = "." left_to_right = false leading_divider = "false" } # source_ip source_port = { label = "$lang_stats.field_labels.source_port" type = "flat" index = 0 subindex = 0 } # source_port source_network = { label = "$lang_stats.field_labels.source_network" type = "flat" index = 0 subindex = 0 } # source_network destination_ip = { label = "$lang_stats.field_labels.destination_ip" type = "flat" index = 0 subindex = 0 } # destination_ip destination_port = { label = "$lang_stats.field_labels.destination_port" type = "flat" index = 0 subindex = 0 } # destination_port destination_network = { label = "$lang_stats.field_labels.destination_network" type = "flat" index = 0 subindex = 0 } # destination_network rule = { label = "$lang_stats.field_labels.rule" type = "flat" index = 0 subindex = 0 } # rule } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse out the date/time 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('() [0-9][0-9]:[0-9][0-9]:[0-9][0-9] \\\\(([^(]+)\\\\) ([0-9]+\\\\.[0-9]+\\\\.[0-9]+\\\\.[0-9]) (.*) - Source:([0-9.]+),([0-9]+) (.*) - Destination:([0-9.]+),([0-9]+\\\\[([^]]+)\\\\]) (.*) - \\\\[([^]]+)\\\\]', '*KEY*,device_name,device_ip,operation,source_ip,source_port,source_network,destination_ip,destination_port,destination_network,rule')" } # 1 # Accept on all lines 2 = { label = "2" comment = "" value = "accept_collected_entry_using_regexp('()', false)" } # 2 } # log.parsing_filters # Database fields database.fields = { device_name = { label = "$lang_stats.field_labels.device_name" log_field = "device_name" type = "string" suppress_top = 0 suppress_bottom = 2 } # device_name device_ip = { label = "$lang_stats.field_labels.device_ip" log_field = "device_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # device_ip operation = { label = "$lang_stats.field_labels.operation" log_field = "operation" type = "string" suppress_top = 0 suppress_bottom = 2 } # operation source_ip = { label = "$lang_stats.field_labels.source_ip" log_field = "source_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_ip source_port = { label = "$lang_stats.field_labels.source_port" log_field = "source_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_port source_network = { label = "$lang_stats.field_labels.source_network" log_field = "source_network" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_network destination_ip = { label = "$lang_stats.field_labels.destination_ip" log_field = "destination_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_ip destination_port = { label = "$lang_stats.field_labels.destination_port" log_field = "destination_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_port destination_network = { label = "$lang_stats.field_labels.destination_network" log_field = "destination_network" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_network rule = { label = "$lang_stats.field_labels.rule" log_field = "rule" type = "string" suppress_top = 0 suppress_bottom = 2 } # rule } # database.fields # Log Filters log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'packets = 1;' } # mark_entry } # log.filters database.numerical_fields = { packets = { label = "$lang_stats.field_labels.packets" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # packets visitors = { label = "$lang_stats.field_labels.visitors" default = false requires_log_field = true log_field = "source_ip" type = "unique" display_format_type = "integer" } # visitors } # database.numerical_fields create_profile_wizard_options = { host_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" device_name = true device_ip = true operation = true source_ip = true source_port = true source_network = true destination_ip = true destination_port = true destination_network = true rule = true } # report_groups } # create_profile_wizard_options not_supported = { sessionpages = true pageviews = true bandwidth = true } # not_supported } # net_gear_fr328_s