amavis = { # The name of the log format log.format.format_label = "Amavis Log Format" log.miscellaneous.log_data_type = "syslog_required" log.miscellaneous.log_format_type = "mail_server" # 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-]+\\) Passed, <" log.format.autodetect_lines = "500" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # An entry in this log is called a "message" in the statistics statistics.miscellaneous.entry_name = "messages" # Log fields log.fields = { result = { label = "$lang_stats.field_labels.result" type = "flat" index = 0 subindex = 0 } # result source_address = { label = "$lang_stats.field_labels.source_address" type = "hierarchical" index = 0 subindex = 0 hierarchy_dividers = "@" left_to_right = false leading_divider = "false" } # source_address destination_address = { label = "$lang_stats.field_labels.destination_address" type = "hierarchical" index = 0 subindex = 0 hierarchy_dividers = "@" left_to_right = false leading_divider = "false" } # destination_address } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse Passed lines 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('()\\\\([0-9-]+\\\\) (Passed), <([^>]*)> -> <([^>]*)>', '*KEY*,result,source_address,destination_address')" } # 1 # Parse INFECTED lines 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('()\\\\([0-9-]+\\\\) (INFECTED[^,]*), <([^>]*)> -> <([^>]*)>', '*KEY*,result,source_address,destination_address')" } # 2 # Accept Passed or INFECTED lines 3 = { label = "3" comment = "" value = "accept_collected_entry_using_regexp('()\\\\([0-9-]+\\\\) (Passed|INFECTED)', false)" } # 3 } # log.parsing_filters # Database fields database.fields = { result = { label = "$lang_stats.field_labels.result" log_field = "result" type = "string" suppress_top = 0 suppress_bottom = 2 } # result source_address = { label = "$lang_stats.field_labels.source_address" log_field = "source_address" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_address destination_address = { label = "$lang_stats.field_labels.destination_address" log_field = "destination_address" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_address } # database.fields database.numerical_fields = { messages = { label = "$lang_stats.field_labels.messages" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # messages } # database.numerical_fields log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'messages = 1;' } # mark_entry } # log.filters create_profile_wizard_options = { # How the reports should be grouped in the report menu report_groups = { date_time_group = "" result = true source_address = true destination_address = true } # report_groups } # create_profile_wizard_options not_supported = { individualhosts = true visitors = true pageviews = true sessions = true sessionpages = true pageviews = true bandwidth = true } # not_supported } # amavis