mail_enable = { # The name of the log format log.format.format_label = "Mail Enable W3C 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 = "^#Software: (MailEnable W3C SMTP Server|MailEnable SMTP Server)" log.format.ignore_format_lines = "true" statistics.miscellaneous.entry_name = "messages" statistics.miscellaneous.visitor_name = "unique client IP" # The format of dates and times in this log log.format.date_format = "yyyy-mm-dd" log.format.time_format = "hh:mm:ss" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # 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 c_ip = { label = "$lang_stats.field_labels.c_ip" type = "host" index = 0 subindex = 0 hierarchy_dividers = "." left_to_right = false leading_divider = "false" } # c_ip s_ip = { label = "$lang_stats.field_labels.s_ip" type = "flat" index = 0 subindex = 0 } # s_ip s_port = { label = "$lang_stats.field_labels.s_port" type = "flat" index = 0 subindex = 0 } # s_port sc_bytes = { label = "$lang_stats.field_labels.sc_bytes" type = "flat" index = 0 subindex = 0 } # sc_bytes cs_bytes = { label = "$lang_stats.field_labels.cs_bytes" type = "size" index = 0 subindex = 0 } # cs_bytes 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 agent = { label = "$lang_stats.field_labels.agent" type = "flat" index = 0 subindex = 0 } # agent account = { label = "$lang_stats.field_labels.account" type = "flat" index = 0 subindex = 0 } # account } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse out the client IP into an unkeyed field 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('^[0-9]+-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+ ()([^ ]+) ', '*KEY*,c_ip')" } # 1 # If this is a from line, rekey the (empty-key) entry with client IP to put it in the right key 2 = { label = "2" comment = "" value = "if (matches_regular_expression(entire_line, '(FROM|From)')) then if (matches_regular_expression(current_log_line(), '^[0-9]+-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+ ()([^ ]+) ')) then rekey_collected_entry($1, $2);" } # 2 # Parse out the date, time, key, agent, account, s-ip, s-port 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('^([0-9-]+) ([0-9:]+) ([^ ]*) ([^ ]*) ([^ ]*) ([^ ]*) ([0-9]*)', 'date,time,*KEY*,agent,account,s_ip,s_port')" } # 3 # Parse out bandwidth from DATA lines 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('^[0-9-]+ [0-9:]+ ([^ ]+) [^ ]+ [^ ]* [^ ]* [0-9]+ (DATA|DATE) DATA [^ ]+ [^ ]+ ([0-9]+) ([0-9]+)', '*KEY*,dummy,sc_bytes,cs_bytes')" } # 4 # Parse From lines 5 = { label = "5" comment = "" value = "collect_fields_using_regexp('^[0-9-]+ [0-9:]+ ([^ ]+) [^ ]+ [^ ]+ [0-9]+ [Mm][Aa][Ii][Ll] [Mm][Aa][Ii][Ll].[Ff][Rr][Oo][Mm]:\\\\+*<([^>]*)>', '*KEY*,from')" } # 5 # Parse To lines 6 = { label = "6" comment = "" value = "collect_fields_using_regexp('^[0-9-]+ [0-9:]+ ([^ ]+) [^ ]+ [^ ]+ [0-9]+ [Rr][Cc][Pp][Tt] [Rr][Cc][Pp][Tt].[Tt][Oo]:\\\\+*<([^>]*)>', '*KEY*,to')" } # 6 # Accept on QUIT line 7 = { label = "7" comment = "" value = "accept_collected_entry_using_regexp('^[0-9-]+ [0-9:]+ ([^ ]*) [^ ]* [^ ]* [^ ]* [0-9]+ QUIT', false)" } # 7 } # 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 c_ip = { label = "$lang_stats.field_labels.c_ip" log_field = "c_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # c_ip s_ip = { label = "$lang_stats.field_labels.s_ip" log_field = "s_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # s_ip s_port = { label = "$lang_stats.field_labels.s_port" log_field = "s_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # s_port 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 domain_description = { label = "$lang_stats.field_labels.domain_description" log_field = "domain_description" type = "string" suppress_top = 0 suppress_bottom = 2 } # domain_description location = { label = "$lang_stats.field_labels.location" log_field = "location" type = "string" suppress_top = 0 suppress_bottom = 2 } # location agent = { label = "$lang_stats.field_labels.agent" log_field = "agent" type = "string" suppress_top = 0 suppress_bottom = 2 } # agent account = { label = "$lang_stats.field_labels.account" log_field = "account" type = "string" suppress_top = 0 suppress_bottom = 2 } # account } # database.fields # Log Filters 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 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 visitors = { label = "$lang_stats.field_labels.visitors" default = false requires_log_field = true log_field = "c_ip" type = "unique" display_format_type = "integer" } # visitors cs_bytes = { label = "$lang_stats.field_labels.cs_bytes" default = false requires_log_field = true log_field = "cs_bytes" type = "float" display_format_type = "bandwidth" } # cs_bytes } # database.numerical_fields 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 c_ip = true s_ip = true s_port = true from = true to = true domain_description = true location = true agent = true account = true } # report_groups } # create_profile_wizard_options not_supported = { sessions = true pageviews = true } # not_supported } # mail_enable