# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. lava2 = { plugin_version = "1.0.1" # Initial creation - 1.0 # 2011-07-27 - 1.0.1 - MSG - Edited info lines. info.1.manufacturer = "Lava Soft" info.1.device = "Lava2 Firewall" info.1.version.1 = "" # The name of the log format log.format.format_label = "Lava2 Log Format" log.miscellaneous.log_data_type = "firewall" log.miscellaneous.log_format_type = "other" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^([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]) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) .*" # This regular expression is used to parse the log fields out of the log entry log.format.parsing_regular_expression = "^([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]) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) .*" # The format of dates and times in this log log.format.date_format = "yyyy-mm-dd" log.format.time_format = "hh:mm:ss" # Log fields log.fields = { date = { label = "$lang_stats.field_labels.date" type = "date" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # date time = { label = "$lang_stats.field_labels.time" type = "time" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # time user = { label = "$lang_stats.field_labels.user" type = "flat" index = 0 subindex = 0 } # user tools_usage = { label = "$lang_stats.field_labels.tools_usage" type = "hierarchical" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # tools_usage response_time_group = { label = "$lang_stats.field_labels.response_time_group" type = "flat" index = 0 subindex = 0 } # response_time_group user_agent = { label = "$lang_stats.field_labels.user_agent" type = "hierarchical" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = true leading_divider = "false" } # user_agent error_status = { label = "$lang_stats.field_labels.error_status" type = "hierarchical" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = true leading_divider = "false" } # error_status cache_usage = { label = "$lang_stats.field_labels.cache_usage" type = "flat" index = 0 subindex = 0 } # cache_usage portal_section = { label = "$lang_stats.field_labels.portal_section" type = "page" index = 0 subindex = 0 hierarchy_dividers = "/" left_to_right = true leading_divider = "false" } # portal_section message = { label = "$lang_stats.field_labels.message" type = "hierarchical" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = true leading_divider = "false" } # message size = { label = "$lang_stats.field_labels.size" type = "size" index = 99999 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # size } # 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 tools_usage = { label = "$lang_stats.field_labels.tools_usage" log_field = "tools_usage" type = "string" suppress_top = 0 suppress_bottom = 2 } # tools_usage response_time_group = { label = "$lang_stats.field_labels.response_time_group" log_field = "response_time_group" type = "string" suppress_top = 0 suppress_bottom = 2 } # response_time_group user_agent = { label = "$lang_stats.field_labels.user_agent" log_field = "user_agent" type = "string" suppress_top = 0 suppress_bottom = 2 } # user_agent portal_section = { label = "$lang_stats.field_labels.portal_section" log_field = "portal_section" type = "string" suppress_top = 0 suppress_bottom = 2 } # portal_section error_status = { label = "$lang_stats.field_labels.error_status" log_field = "error_status" type = "string" suppress_top = 0 suppress_bottom = 2 } # error_status cache_usage = { label = "$lang_stats.field_labels.cache_usage" log_field = "cache_usage" type = "string" suppress_top = 0 suppress_bottom = 2 } # cache_usage message = { label = "$lang_stats.field_labels.message" log_field = "message" type = "string" suppress_top = 0 suppress_bottom = 2 } # message } # database.fields # Log Filters log.filters = { # This filter copies the source host field to the "visitor id" mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'hits = 1;' } # mark_entry } # log.filters log.field_options = { sessions_page_field = "portal_section" sessions_visitor_id_field = "user" sessions_event_field = "page_views" } # log.field_options database.numerical_fields = { hits = { label = "$lang_stats.field_labels.hits" default = false requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # hits page_views = { label = "$lang_stats.field_labels.page_views" default = true requires_log_field = false type = "int" display_format_type = "integer" } # page_views visitors = { label = "$lang_stats.field_labels.visitors" default = false requires_log_field = true log_field = "user" type = "unique" display_format_type = "integer" } # visitors size = { label = "$lang_stats.field_labels.size" default = false requires_log_field = true log_field = "size" type = "int" integer_bits = 64 display_format_type = "bandwidth" } # size } # 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 = "" tools_usage = true response_time_group = true user_agent = true portal_section = true error_status = true cache_usage = true message = true } # report_groups } # create_profile_wizard_options not_supported = { } # not_supported } # lava2