declude_spam = { # The name of the log format log.format.format_label = "Declude SPAM" log.miscellaneous.log_data_type = "generic" log.miscellaneous.log_format_type = "mail_server" # The log is in this format if any of the first 100 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] [0-9A-Za-z]* .* (Total weight|Declude|Message OK)" #Search this many lines for the regex for auto-detect log.format.autodetect_lines = "100" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # The format of dates and times in this log log.format.date_format = "mm/dd/yyyy" log.format.time_format = "hh:mm:ss" # An entry in this log is called a "message" in the statistics (not a "hit") # statistics.miscellaneous.entry_name = "message" # 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 from = { label = "$lang_stats.field_labels.from" type = "flat" index = 0 subindex = 0 } # from to = { label = "$lang_stats.field_labels.to" type = "flat" index = 0 subindex = 0 } # to test = { label = "$lang_stats.field_labels.test" type = "flat" index = 0 subindex = 0 } # test message = { label = "$lang_stats.field_labels.message" type = "flat" index = 0 subindex = 0 } # message action = { label = "$lang_stats.field_labels.action" type = "flat" index = 0 subindex = 0 } # action } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse out the date and time 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('^()([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])', '*KEY*,date,time')" } # 1 # Parse out the "From: To: victim@example.com" 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('()From: ([^ ]*) To: ([^ ]*)', '*KEY*,from,to')" } # 2 # Parse out the Msg failed line 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('() Msg failed ([^ ]*) \\\\(([^)]*)\\\\)', '*KEY*,test,message')" } # 3 # Parse out the Test failed line 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('() Tests failed \\\\[weight=[0-9]+\\\\]: (.*)$', '*KEY*,test')" } # 4 # Parse out the Msg failed line with Action= 5 = { label = "5" comment = "" value = "collect_fields_using_regexp('() Msg failed ([^ ]*) \\\\(([^)]*)\\\\)\\\\. Action=([^.]*).', '*KEY*,test,message,action')" } # 5 # Accept this collected log entry 6 = { label = "6" comment = "" value = "accept_collected_entry_using_regexp('()', false)" } # 6 } # log.parsing_filters # 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 from = { label = "$lang_stats.field_labels.from" log_field = "from" type = "string" suppress_top = 0 suppress_bottom = 2 } # from to = { label = "$lang_stats.field_labels.to" log_field = "to" type = "string" suppress_top = 0 suppress_bottom = 2 } # to test = { label = "$lang_stats.field_labels.test" log_field = "test" type = "string" suppress_top = 0 suppress_bottom = 2 } # test message = { label = "$lang_stats.field_labels.message" log_field = "message" type = "string" suppress_top = 0 suppress_bottom = 2 } # message action = { label = "$lang_stats.field_labels.action" log_field = "action" type = "string" suppress_top = 0 suppress_bottom = 2 } # action } # 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 = { date_time_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" day_of_week = true hour_of_day = true from = true to = true test = true message = true action = true } # report_groups } # create_profile_wizard_options not_supported = { visitors = true sessions = true pageviews = true bandwidth = true individualhosts = true } # not_supported } # declude_spam