# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. netgear_fvs318_with_syslog = { plugin_version = "1.0" # 2012-11-30 - MSG - Initial creation - 1.0 info.1.manufacturer = "Netgear" info.1.device = "FVS318 With Syslog" info.1.version.1 = "Firmware 3.0_26" log.format.format_label = "Netgear FVS318 With Syslog" log.miscellaneous.log_data_type = "syslog_required" #Format: log_data_type {value} log.miscellaneous.log_data_type = "syslog_required" log.miscellaneous.log_format_type = "network_device" # Format: entry_name {value} statistics.miscellaneous.entry_name = "events" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "[MTWFS][a-z][a-z], [0-9-]+ [0-9:]+ - [A-Z]+ [a-z ]+ - Source: [0-9.]+ -" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # The format of dates and times in this log log.format.date_format = "auto" log.format.time_format = "auto" # Log fields log.fields = { date_time = "" protocol = "" source_ip = "" destination_ip = "" reason = "" } # log.fields # Log Parsing Filters log.parsing_filters.parse = ` if (matches_regular_expression(v.syslog_message, '[MTWFS][a-z][a-z], [0-9-]+ [0-9:]+ - ([A-Z]+ [a-z ]+) - Source: ([0-9.]+) - Destination: ([0-9.]+) - [[]([^]]+)[]]$')) then ( set_collected_field('', 'protocol', $1); set_collected_field('', 'source_ip', $2); set_collected_field('', 'destination_ip', $3); set_collected_field('', 'reason', $4); accept_collected_entry('', false); ); ` # log.parsing_filters # Database fields database.fields = { date_time = "" day_of_week = "" hour_of_day = "" protocol = "" source_ip = "" destination_ip = "" reason = "" } # 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 = 'events = 1;' } # mark_entry } # log.filters database.numerical_fields = { events = { label = "$lang_stats.field_labels.events" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # events } # database.numerical_fields create_profile_wizard_options = { date_time_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" protocol = true event = true source_ip = true source_port = true destination_ip = true destination_port = true reason = true } # report_groups } # create_profile_wizard_options } # netgear_fvs318_with_syslog