# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. netopia_4553 = { # The name of the log format log.format.format_label = "Netopia 4553 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 = "[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]+ [0-9][0-9][0-9][0-9] protocol:" log.format.parse_only_with_filters = "true" # Log fields log.fields = { type = "" protocol = "" src_ip.type = "host" dst_ip = "" src_port = "" dst_port = "" } # log.fields # # Log Parsing Filters log.parsing_filters = { parse = ` if (matches_regular_expression(v.syslog_message, 'protocol:([^ ]+) srcIP: *([0-9.]+) dstIP: *([0-9.]+) srcPort: *([0-9]+) dstPort:([0-9]+) ([a-z]+)')) then ( set_collected_field('', 'protocol', $1); set_collected_field('', 'src_ip', $2); set_collected_field('', 'dst_ip', $3); set_collected_field('', 'src_port', $4); set_collected_field('', 'dst_port', $5); set_collected_field('', 'type', $6); ); accept_collected_entry('', false); ` } # log.parsing_filters # Database fields database.fields = { type = "" protocol = "" src_ip = "" location = "" src_port = "" dst_ip = "" dst_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 = { label = "$lang_stats.field_labels.events" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # events unique_source_ips = { label = "$lang_stats.field_labels.unique_source_ips" default = false requires_log_field = true log_field = "src_ip" type = "unique" display_format_type = "integer" } # unique_source_ips } # 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 = "" type = true protocol = true src_ip = true src_port = true dst_ip = true dst_port = true } # report_groups } # create_profile_wizard_options } # netopia_4553