# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. sophos_antispam_pmx = { plugin_version = "1.0" # 2007-09-14 - 1.0 - KBB - added version number and changed file name from # beta_sophos_antispam_pmx.cfg # The name of the log format log.format.format_label = "Sophos Antispam PMX Log Format" log.miscellaneous.log_data_type = "mail_server" 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][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9] \\[[0-9]+,[^]]+\\] Process started" # Log fields log.fields = { date = "" time = "" status = "" } # log.fields log.parsing_filters.parse = ` if (matches_regular_expression(current_log_line(), "^[0-9]+ ([0-9-]+)T([0-9:]*) \\[[0-9]+,[^]]+\\][^:]+: (quarantine|accepted)")) then ( date = $1; time = $2; status = $3; ); ` # Database fields database.fields = { date_time = "" day_of_week = "" hour_of_day = "" status = "" } # database.fields database.numerical_fields = { events = { default = true requires_log_field = false entries_field = true } # events } # 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 = { # How the reports should be grouped in the report menu report_groups = { date_time_group = "" status = true } # report_groups } # create_profile_wizard_options } # sophos_antispam_pmx