iissmtpw3_c = { # The name of the log format log.format.format_label = "IIS SMTP 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_expression = " matches_regular_expression(volatile.log_data_line, '^[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-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+ ([^ ]+ [A-Z0-9]* *SMTPSVC[0-9]+ |OutboundConnectionResponse|OutboundConnectionCommand)') or matches_regular_expression(volatile.log_data_line, '^[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-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+ [^ ]+ [0-9]+ [0-9]+$') " log.format.collected_entry_lifespan = 1000 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 client_ip = { label = "$lang_stats.field_labels.client_ip" type = "host" index = 0 subindex = 0 hierarchy_dividers = "." left_to_right = false leading_divider = "false" } # client_ip dummy = { label = "dummy" type = "flat" index = 0 subindex = 0 } # dummy 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 } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse out the client IP into an unkeyed field parse = { label = "parse" comment = "" value = " if (matches_regular_expression(current_log_line(), '^([0-9]+-[0-9]+-[0-9]+) ([0-9]+:[0-9]+:[0-9]+) ([^ ]+) (.*)$')) then ( v.client_ip = $3; v.message = $4; set_collected_field(v.client_ip, 'date', $1); set_collected_field(v.client_ip, 'time', $2); set_collected_field(v.client_ip, 'client_ip', $3); if (contains(v.message, ' QUIT')) then accept_collected_entry(v.client_ip, false); else if (matches_regular_expression(v.message, '[Ff][Rr][Oo][Mm]:\\\\+*<([^>]*)>')) then set_collected_field(v.client_ip, 'from', $1); else if (matches_regular_expression(v.message, '[Tt][Oo]:\\\\+*<([^>]*)>')) then set_collected_field(v.client_ip, 'to', $1); ); " } # parse } # 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 client_ip = { label = "$lang_stats.field_labels.client_ip" log_field = "client_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # client_ip 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 } # 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 unique_client_ips = { label = "$lang_stats.field_labels.unique_client_ips" default = false requires_log_field = true log_field = "client_ip" type = "unique" display_format_type = "integer" } # unique_client_ips } # 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 client_ip = true from = true to = true domain_description = true location = true } # report_groups } # create_profile_wizard_options not_supported = { sessions = true pageviews = true bandwidth = true } # not_supported } # iissmtpw3_c