mailer_daemon = { # The name of the log format log.format.format_label = "Mailer Daemon 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 = "^START Event Log / MDaemon PRO" # 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 = "yyyy-mm-dd" log.format.time_format = "hh:mm:ss" # A log entry is a "connection" statistics.miscellaneous.entry_name = "connections" # 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 source_ip = { label = "$lang_stats.field_labels.source_ip" type = "flat" index = 0 subindex = 0 } # source_ip source_hostname = { label = "$lang_stats.field_labels.source_hostname" type = "flat" index = 0 subindex = 0 } # source_hostname protocol = { label = "$lang_stats.field_labels.protocol" type = "flat" index = 0 subindex = 0 } # protocol username = { label = "$lang_stats.field_labels.username" type = "flat" index = 0 subindex = 0 } # username bytes = { label = "$lang_stats.field_labels.bytes" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # bytes sender = { label = "$lang_stats.field_labels.sender" type = "flat" index = 0 subindex = 0 } # sender recipient = { label = "$lang_stats.field_labels.recipient" type = "flat" index = 0 subindex = 0 } # recipient } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse date/time from line 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('^[A-Z][a-z][a-z] ([0-9-]*) ([0-9:]*): \\\\[([0-9:]*)\\\\]', 'date,time,*KEY*')" } # 1 # Parse Accepting connection from line 2 = { label = "2" comment = "" value = "collect_fields_using_regexp(': \\\\[([0-9:]*)\\\\] Accepting (IMAP|POP|SMTP) connection from \\\\[([0-9.]*)\\\\]', '*KEY*,protocol,source_ip')" } # 2 # Parse line with username on LOGIN line 3 = { label = "3" comment = "" value = "collect_fields_using_regexp(': \\\\[([0-9:]*)\\\\] [0-9]* LOGIN \"(.*)\"', '*KEY*,username')" } # 3 # Parse USER line 4 = { label = "4" comment = "" value = "collect_fields_using_regexp(': \\\\[([0-9:]*)\\\\] USER (.*)$', '*KEY*,username')" } # 4 # Parse Message received line 5 = { label = "5" comment = "" value = "collect_fields_using_regexp(': \\\\[([0-9:]*)\\\\] Message received from ([^ ]+) \\\\[([0-9.]+)\\\\] <([^>]*)> with SMTP for <([^>]*)> \\\\[Size ([0-9]+)\\\\]', '*KEY*,source_host,source_ip,sender,recipient,bytes')" } # 5 # Accept this log entry 6 = { label = "6" comment = "" value = "accept_collected_entry_using_regexp(': \\\\[([0-9:]*)\\\\] (POP session complete|IMAP session complete|Message received from)', 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 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 protocol = { label = "$lang_stats.field_labels.protocol" log_field = "protocol" type = "string" suppress_top = 0 suppress_bottom = 2 } # protocol username = { label = "$lang_stats.field_labels.username" log_field = "username" type = "string" suppress_top = 0 suppress_bottom = 2 } # username recipient = { label = "$lang_stats.field_labels.recipient" log_field = "recipient" type = "string" suppress_top = 0 suppress_bottom = 2 } # recipient sender = { label = "$lang_stats.field_labels.sender" log_field = "sender" type = "string" suppress_top = 0 suppress_bottom = 2 } # sender } # database.fields database.numerical_fields = { connections = { label = "$lang_stats.field_labels.connections" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # connections bytes = { label = "$lang_stats.field_labels.bytes" default = false requires_log_field = true log_field = "bytes" type = "float" display_format_type = "bandwidth" } # bytes } # database.numerical_fields log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'connections = 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 source_ip = true source_host = true protocol = true username = true recipient = true sender = true } # report_groups } # create_profile_wizard_options not_supported = { visitors = true sessions = true pageviews = true individualhosts = true } # not_supported } # mailer_daemon