# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. smooth_wall = { plugin_version = "1.0.1" # Initial creation - 1.0 # 2011-07-19 - 1.0.1 - MSG - Edited info lines. info.1.manufacturer = "GNU" info.1.device = "SmoothWall" info.1.version.1 = "" # SmoothWall # The name of the log format log.format.format_label = "SmoothWall Log Format" log.miscellaneous.log_data_type = "firewall" 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 = "^SmoothWall firewall log" # Extract data from each line with this regular expression log.format.parsing_regular_expression = "^([0-9:]+) ([^ ]+) ([^ ]+) ([^ ]+) PROTO=([0-9]+) ([0-9.]+):([0-9]+) ([0-9.]+):([0-9]+) L=([0-9]+) S=(0x[0-9a-fA-F]+) I=([0-9]+) F=(0x[0-9a-fA-F]+) T=([0-9]+) *(.*) \\((#[0-9]+)\\) *$" # The format of dates and times in this log log.format.date_format = "dd mmm" log.format.time_format = "hh:mm:ss" # Extract date from the Date: line log.format.global_date_regular_expression = "^Date: ([0-9][0-9] [A-Z][a-z][a-z])" # Log entries are called accesses statistics.miscellaneous.entry_name = "accesses" # Log fields log.fields = { time = { label = "$lang_stats.field_labels.time" type = "time" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # time type = { label = "$lang_stats.field_labels.type" type = "flat" index = 0 subindex = 0 } # type unknown = { label = "unknown" type = "flat" index = 0 subindex = 0 } # unknown interface = { label = "$lang_stats.field_labels.interface" type = "flat" index = 0 subindex = 0 } # interface protocol = { label = "$lang_stats.field_labels.protocol" type = "flat" index = 0 subindex = 0 } # protocol 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 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 l = { label = "$lang_stats.field_labels.l" type = "flat" index = 0 subindex = 0 } # l s = { label = "$lang_stats.field_labels.s" type = "flat" index = 0 subindex = 0 } # s f = { label = "$lang_stats.field_labels.f" type = "flat" index = 0 subindex = 0 } # f i = { label = "$lang_stats.field_labels.i" type = "flat" index = 0 subindex = 0 } # i t = { label = "$lang_stats.field_labels.t" type = "flat" index = 0 subindex = 0 } # t flag = { label = "$lang_stats.field_labels.flag" type = "flat" index = 0 subindex = 0 } # flag rule = { label = "$lang_stats.field_labels.rule" type = "flat" index = 0 subindex = 0 } # rule date = { label = "$lang_stats.field_labels.date" type = "date" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # date } # log.fields # Database fields database.fields = { date_time = { label = "$lang_stats.field_labels.date_time" log_field = "date_time" type = "string" suppress_top = 0 suppress_bottom = 3 display_format_type = "date_time" } # date_time day_of_week = { label = "$lang_stats.field_labels.day_of_week" log_field = "day_of_week" type = "string" suppress_top = 0 suppress_bottom = 2 display_format_type = "day_of_week" } # day_of_week hour_of_day = { label = "$lang_stats.field_labels.hour_of_day" log_field = "hour_of_day" type = "string" suppress_top = 0 suppress_bottom = 2 display_format_type = "hour_of_day" } # hour_of_day type = { label = "$lang_stats.field_labels.type" log_field = "type" type = "string" suppress_top = 0 suppress_bottom = 2 } # type interface = { label = "$lang_stats.field_labels.interface" log_field = "interface" type = "string" suppress_top = 0 suppress_bottom = 2 } # interface protocol = { label = "$lang_stats.field_labels.protocol" log_field = "protocol" type = "string" suppress_top = 0 suppress_bottom = 2 } # protocol 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 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 l = { label = "$lang_stats.field_labels.l" log_field = "l" type = "string" suppress_top = 0 suppress_bottom = 2 } # l s = { label = "$lang_stats.field_labels.s" log_field = "s" type = "string" suppress_top = 0 suppress_bottom = 2 } # s i = { label = "$lang_stats.field_labels.i" log_field = "i" type = "string" suppress_top = 0 suppress_bottom = 2 } # i f = { label = "$lang_stats.field_labels.f" log_field = "f" type = "string" suppress_top = 0 suppress_bottom = 2 } # f t = { label = "$lang_stats.field_labels.t" log_field = "t" type = "string" suppress_top = 0 suppress_bottom = 2 } # t flag = { label = "$lang_stats.field_labels.flag" log_field = "flag" type = "string" suppress_top = 0 suppress_bottom = 2 } # flag 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 = 'accesses = 1;' } # mark_entry } # log.filters database.numerical_fields = { accesses = { label = "$lang_stats.field_labels.accesses" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # accesses 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 = { date_time_tracking = true host_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" type = true interface = true protocol = true source_ip = true source_port = true destination_ip = true destination_port = true l = true s = true i = true f = true t = true flag = true rule = true } # report_groups } # create_profile_wizard_options not_supported = { bandwidth = true sessionpages = true pageviews = true } # not_supported } # smooth_wall