# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. spam_assassin = { plugin_version = "1.0.1" # Initial creation - 1.0 # 2011-07-19 - 1.0.1 - MSG - Edited info lines. info.1.manufacturer = "Apache" info.1.device = "SpamAssassin" info.1.version.1 = "" # The name of the log format log.format.format_label = "SpamAssassin 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 = "processing message <[^>]+> for [^:]+:[0-9]+, expecting [0-9]+ bytes." statistics.miscellaneous.entry_name = "messages" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Log fields log.fields = { source_hostname = { label = "$lang_stats.field_labels.source_hostname" type = "flat" index = 0 subindex = 0 } # source_hostname source_ip = { label = "$lang_stats.field_labels.source_ip" type = "flat" index = 0 subindex = 0 } # source_ip source_port = { label = "$lang_stats.field_labels.source_port" type = "flat" index = 0 subindex = 0 } # source_port type = { label = "$lang_stats.field_labels.type" type = "flat" index = 0 subindex = 0 } # type user = { label = "$lang_stats.field_labels.user" type = "flat" index = 0 subindex = 0 } # user bytes = { label = "$lang_stats.field_labels.bytes" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # bytes } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse "connection from" lines 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('()connection from ([^ ]+) \\\\[([0-9.]+)\\\\] at port ([0-9]+)', '*KEY*,source_hostname,source_ip,source_port')" } # 1 # Parse "identified spam" or "clean message" lines 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('()(identified spam|clean message) .* for ([^:]+):[0-9]+ in [0-9.]+ seconds, ([0-9]+) bytes.', '*KEY*,type,user,bytes')" } # 2 # Accept on "identified spam" or "clean message" lines 3 = { label = "3" comment = "" value = "accept_collected_entry_using_regexp('()(identified spam|clean message)', false)" } # 3 } # log.parsing_filters # Database fields database.fields = { source_hostname = { label = "$lang_stats.field_labels.source_hostname" log_field = "source_hostname" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_hostname source_ip = { label = "$lang_stats.field_labels.source_ip" log_field = "source_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_ip type = { label = "$lang_stats.field_labels.type" log_field = "type" type = "string" suppress_top = 0 suppress_bottom = 2 } # type user = { label = "$lang_stats.field_labels.user" log_field = "user" type = "string" suppress_top = 0 suppress_bottom = 2 } # user } # 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 = "" source_hostname = true source_ip = true type = true user = true } # report_groups } # create_profile_wizard_options not_supported = { sessions = true bandwidth = true visitors = true pageviews = true individualhosts = true } # not_supported } # spam_assassin