sophos_mail_monitor_smtp = { # Sophos Mail Monitor for SMTP # The name of the log format log.format.format_label = "Sophos Mail Monitor for SMTP" 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 = "^ " # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Combine logname= lines with the next lines log.format.ignore_newlines_after_log_line_regexp = "logname=" # The format of dates and times in this log log.format.date_format = "mmm dd hh:mm:ss yyyy" log.format.time_format = "mmm dd hh:mm:ss yyyy" # An entry in this log is called a "message" in the statistics statistics.miscellaneous.entry_name = "messages" # Log fields log.fields = { date_time = { label = "$lang_stats.field_labels.date_time" type = "date_time" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # date_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 source_ip = { label = "$lang_stats.field_labels.source_ip" type = "host" index = 0 subindex = 0 hierarchy_dividers = "." left_to_right = false leading_divider = "false" } # source_ip source_host = { label = "$lang_stats.field_labels.source_host" type = "flat" index = 0 subindex = 0 } # source_host size = { label = "$lang_stats.field_labels.size" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # size virus = { label = "$lang_stats.field_labels.virus" type = "flat" index = 0 subindex = 0 } # virus virus_host = { label = "$lang_stats.field_labels.virus_host" type = "flat" index = 0 subindex = 0 } # virus_host virus_sender = { label = "$lang_stats.field_labels.virus_sender" type = "flat" index = 0 subindex = 0 } # virus_sender virus_recipient = { label = "$lang_stats.field_labels.virus_recipient" type = "flat" index = 0 subindex = 0 } # virus_recipient } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse out the datestamp 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('tid=\"([0-9]+)\".*time=\"... ([^\"]+)\" ', '*KEY*,date_time')" } # 1 # Parse out an "Accepted connection from the client" message 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('tid=\"([0-9]+)\".*Accepted connection from the client: \\\\[]+)>', '*KEY*,to')" } # 3 # Parse MAIL FROM lines 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('tid=\"([0-9]+)\".*[Mm][Aa][Ii][Ll] [Ff][Rr][Oo][Mm]:<([^>]+)>', '*KEY*,from')" } # 4 # Parse SIZE lines 5 = { label = "5" comment = "" value = "collect_fields_using_regexp('tid=\"([0-9]+)\".*[Ss][Ii][Zz][Ee]=([0-9]+)', '*KEY*,size')" } # 5 # Collect date/time for virus field with r key 6 = { label = "6" comment = "" value = "collect_fields_using_regexp('', 'date_time,*KEY*')" } # 6 # Collect virus name with r key 7 = { label = "7" comment = "" value = "collect_fields_using_regexp('Vi(r)us identity found: (.*)', '*KEY*,virus')" } # 7 # Collect virus host name with r key 8 = { label = "8" comment = "" value = "collect_fields_using_regexp('Scanning pa(r)t \\\\[(.*)\\\\]', '*KEY*,virus_host')" } # 8 # Collect virus sender with r key 9 = { label = "9" comment = "" value = "collect_fields_using_regexp('Sende(r):.*\\\\[CDATA\\\\[<([a-z@\\\\.]+)>\\\\]\\\\]>

', '*KEY*,virus_sender')" } # 9 # Collect virus recipient with r key 10 = { label = "10" comment = "" value = "collect_fields_using_regexp('(R)ecipients:.*\\\\[CDATA\\\\[<([a-z@\\\\.]+)>\\\\]\\\\]>

', '*KEY*,virus_recipient')" } # 10 # Accept r key lines 11 = { label = "11" comment = "" value = "accept_collected_entry_using_regexp('Vi(r)us identity found:', false)" } # 11 # Accept this log entry on RCPT TO 12 = { label = "12" comment = "" value = "accept_collected_entry_using_regexp('tid=\"([0-9]+)\".*[Rr][Cc][Pp][Tt] [Tt][Oo]:', false)" } # 12 } # 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 source_ip = { label = "$lang_stats.field_labels.source_ip" log_field = "source_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_ip source_host = { label = "$lang_stats.field_labels.source_host" log_field = "source_host" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_host 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 virus = { label = "$lang_stats.field_labels.virus" log_field = "virus" type = "string" suppress_top = 0 suppress_bottom = 2 } # virus virus_host = { label = "$lang_stats.field_labels.virus_host" log_field = "virus_host" type = "string" suppress_top = 0 suppress_bottom = 2 } # virus_host virus_sender = { label = "$lang_stats.field_labels.virus_sender" log_field = "virus_sender" type = "string" suppress_top = 0 suppress_bottom = 2 } # virus_sender virus_recipient = { label = "$lang_stats.field_labels.virus_recipient" log_field = "virus_recipient" type = "string" suppress_top = 0 suppress_bottom = 2 } # virus_recipient } # 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 size = { label = "$lang_stats.field_labels.size" default = false requires_log_field = true log_field = "size" type = "float" display_format_type = "bandwidth" } # size } # 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 host_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 source_ip = true source_host = true from = true to = true virus = true virus_host = true virus_sender = true virus_recipient = true } # report_groups } # create_profile_wizard_options not_supported = { visitors = true sessions = true pageviews = true individualhosts = true } # not_supported } # sophos_mail_monitor_smtp