mail_scanner_virus_log = { # sessions, hits, bandwidth, pageviews, and visitors. # The name of the log format log.format.format_label = "MailScanner Virus Log Format (email messages sent)" 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 = "www.mailscanner.info" 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 = "dd/mmm/yyyy" log.format.time_format = "hh:mm:ss" # A log entry is called an event statistics.miscellaneous.entry_name = "messages" # 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 sender = { label = "$lang_stats.field_labels.sender" type = "flat" index = 0 subindex = 0 } # sender ip_address = { label = "$lang_stats.field_labels.ip_address" type = "flat" index = 0 subindex = 0 } # ip_address recipient = { label = "$lang_stats.field_labels.recipient" type = "flat" index = 0 subindex = 0 } # recipient subject = { label = "$lang_stats.field_labels.subject" type = "flat" index = 0 subindex = 0 } # subject messageid = { label = "$lang_stats.field_labels.messageid" type = "flat" index = 0 subindex = 0 } # messageid report = { label = "$lang_stats.field_labels.report" type = "flat" index = 0 subindex = 0 } # report } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse date, time 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('^()Date: [A-Z][a-z][a-z], ([0-9]+ [A-Z][a-z][a-z] [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 sender field 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('^().*Sender: (.*)$', '*KEY*,sender')" } # 2 # Parse IP address field 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('^()IP Address: (.*)$', '*KEY*,ip_address')" } # 3 # Parse recipient field 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('^().*Recipient: (.*)$', '*KEY*,recipient')" } # 4 # Parse subject field 5 = { label = "5" comment = "" value = "collect_fields_using_regexp('^().*Subject: (.*)$', '*KEY*,subject')" } # 5 # Parse messageID field 6 = { label = "6" comment = "" value = "collect_fields_using_regexp('^().*MessageID: (.*)$', '*KEY*,messageid')" } # 6 # Parse report field 7 = { label = "7" comment = "" value = "collect_fields_using_regexp('^().*Report: (.*)$', '*KEY*,report')" } # 7 # Accept on -- 8 = { label = "8" comment = "" value = "accept_collected_entry_using_regexp('^()--', false)" } # 8 } # 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 sender = { label = "$lang_stats.field_labels.sender" log_field = "sender" type = "string" suppress_top = 0 suppress_bottom = 2 } # sender ip_address = { label = "$lang_stats.field_labels.ip_address" log_field = "ip_address" type = "string" suppress_top = 0 suppress_bottom = 9 } # ip_address recipient = { label = "$lang_stats.field_labels.recipient" log_field = "recipient" type = "string" suppress_top = 0 suppress_bottom = 3 } # recipient subject = { label = "$lang_stats.field_labels.subject" log_field = "subject" type = "string" suppress_top = 0 suppress_bottom = 3 } # subject messageid = { label = "$lang_stats.field_labels.messageid" log_field = "messageid" type = "string" suppress_top = 0 suppress_bottom = 2 } # messageid report = { label = "$lang_stats.field_labels.report" log_field = "report" type = "string" suppress_top = 0 suppress_bottom = 9 } # report } # 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 sender = true ip_address = true recipient = true subject = true messageid = true report = true } # report_groups } # create_profile_wizard_options not_supported = { bandwidth = true visitors = true sessions = true pageviews = true individualhosts = true } # not_supported } # mail_scanner_virus_log