# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. bigfire_babylon_accounting = { plugin_version = "1.0.1" # Initial creation - 1.0 # 2010-10-13 - 1.0.1 - MSG - Edited info lines. info.1.manufacturer = "Biodata" info.1.device = "BigFire Firewall" info.1.version.1 = "" # The name of the log format log.format.format_label = "BigFire / Babylon accounting Log Format" log.miscellaneous.log_data_type = "syslog_required" log.miscellaneous.log_format_type = "firewall" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^[A-Za-z]+ *[0-9]+ [0-9:]+ [^ ]+ \\[[0-9]+\\] [A-Z]+ [a-z]+ [0-9]+ [0-9.]+:[0-9]+ [0-9.]+:[0-9]+ [0-9]+ [0-9]+ $" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # an entry in this log is an event statistics.miscellaneous.entry_name = "events" # Log fields log.fields = { protocol = { label = "$lang_stats.field_labels.protocol" type = "flat" index = 0 subindex = 0 } # protocol src = { label = "$lang_stats.field_labels.src" type = "host" index = 0 subindex = 0 hierarchy_dividers = "." left_to_right = false leading_divider = "false" } # src dst = { label = "$lang_stats.field_labels.dst" type = "flat" index = 0 subindex = 0 } # dst src_port = { label = "$lang_stats.field_labels.src_port" type = "flat" index = 0 subindex = 0 } # src_port dst_port = { label = "$lang_stats.field_labels.dst_port" type = "flat" index = 0 subindex = 0 } # dst_port bytes = { label = "$lang_stats.field_labels.bytes" type = "flat" index = 0 subindex = 0 } # bytes packets = { label = "$lang_stats.field_labels.packets" type = "flat" index = 0 subindex = 0 } # packets interface = { label = "$lang_stats.field_labels.interface" type = "flat" index = 0 subindex = 0 } # interface } # log.fields # Log Parsing Filters log.parsing_filters = { parse = { label = "parse" comment = "" value = " if (matches_regular_expression(v.syslog_message, '^()\\[[0-9]+\\] [A-Z]+ ([a-z]+) ([0-9]+) ([0-9.]+):([0-9]+) ([0-9.]+):([0-9]+) ([0-9]+) ([0-9]+) $')) then ( v.key = $1; set_collected_field(v.key, 'interface', $2); set_collected_field(v.key, 'protocol', $3); set_collected_field(v.key, 'src', $4); set_collected_field(v.key, 'src_port', $5); set_collected_field(v.key, 'dst', $6); set_collected_field(v.key, 'dst_port', $7); set_collected_field(v.key, 'bytes', $8); set_collected_field(v.key, 'packets', $9); accept_collected_entry(v.key, false); ); " } # parse } # log.parsing_filters # Database fields database.fields = { protocol = { label = "$lang_stats.field_labels.protocol" log_field = "protocol" type = "string" suppress_top = 0 suppress_bottom = 2 } # protocol interface = { label = "$lang_stats.field_labels.interface" log_field = "interface" type = "string" suppress_top = 0 suppress_bottom = 2 } # interface src = { label = "$lang_stats.field_labels.src" log_field = "src" type = "string" suppress_top = 0 suppress_bottom = 2 } # src dst = { label = "$lang_stats.field_labels.dst" log_field = "dst" type = "string" suppress_top = 0 suppress_bottom = 2 } # dst src_port = { label = "$lang_stats.field_labels.src_port" log_field = "src_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # src_port dst_port = { label = "$lang_stats.field_labels.dst_port" log_field = "dst_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # dst_port } # database.fields 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 packets = { label = "$lang_stats.field_labels.packets" default = false requires_log_field = true log_field = "packets" type = "int" display_format_type = "integer" entries_field = false } # packets bytes = { label = "$lang_stats.field_labels.bytes" default = false requires_log_field = true log_field = "bytes" type = "int" integer_bits = 64 display_format_type = "bandwidth" entries_field = false } # bytes } # database.numerical_fields 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 create_profile_wizard_options = { host_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" logging_device = true src = true src_port = true dst = true dst_port = true protocol = true interface = true } # report_groups } # create_profile_wizard_options not_supported = { sessions = true pageviews = true visitors = true } # not_supported } # bigfire_babylon_accounting