# Copyright (c) 2014 Flowerfire, Inc. All Rights Reserved. sir_log = { plugin_version = "2.0" # Initial creation - 1.0.1 # 2014-03-18 - 1.0.1 - MSG - Edited info lines. # 2014-03-18 - 2.0 - GMF - Rewrote to make into syslog_required, and other changes info.1.manufacturer = "Fujitsu" info.1.device = "Si-R" info.1.version.1 = "" # The name of the log format log.format.format_label = "Si-R 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 = "(NAT|FILTER|PASS|WWW)[: ].*(->|<-)" # Log Parsing Filters log.parsing_filters.parse = ` if (matches_regular_expression(v.syslog_message, "\\s+([A-Za-z:]+):\\s+(.+):\\s+([A-Z]+)\\s+([0-9.:]+)\\s+(->|<-)\\s+([0-9.]+):([0-9]+)$")) then ( set_collected_field('', 'type', $2); set_collected_field('', 'protocol', $3); set_collected_field('', 'source_ip', $4); set_collected_field('', 'destination_ip', $6); set_collected_field('', 'destination_port', $7); # Accept the entry we just collected accept_collected_entry('', false); ); ` # Log fields log.fields = { type = "" protocol = "" source_ip = "" destination_ip = "" destination_port = "" } # log.fields # Database fields database.fields = { type = "" protocol = "" source_ip = "" destination_ip = "" destination_port = "" } # 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 = { default = true requires_log_field = false entries_field = true } # events } # database.numerical_fields create_profile_wizard_options = { # How the reports should be grouped in the report menu report_groups = { date_time_group = "" } # report_groups } # create_profile_wizard_options } # sir_log