mailman_subscribe = { # The name of the log format log.format.format_label = "Mailman Subscribe Log Format" log.miscellaneous.log_data_type = "generic" 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 = "^[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][0-9][0-9] \\([0-9]+\\) [^:]+: (pending|new) " # 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" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Log fields log.fields = { date_time = { label = "$lang_stats.field_labels.date_time" type = "date_time" } # date_time source_address = { label = "$lang_stats.field_labels.source_address" type = "host" } # source_address list = { label = "$lang_stats.field_labels.list" type = "flat" index = 0 subindex = 0 } # list type = { label = "$lang_stats.field_labels.type" type = "flat" } # type email_address = { label = "$lang_stats.field_labels.email_address" type = "flat" } # email_address } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse a line parse = { label = "parse" comment = "" value = " if (matches_regular_expression(current_log_line(), '^([A-Za-z]+ [0-9]+ [0-9:]+ [0-9]+) \\([0-9]+\\) ([^:]+): (new|pending) (.*)$')) then ( set_collected_field('', 'date_time', $1); set_collected_field('', 'list', $2); set_collected_field('', 'type', $3); if (($3 eq 'pending') and matches_regular_expression($4, '^(.*) (.*)$')) then ( set_collected_field('', 'email_address', $1); set_collected_field('', 'source_address', $2); ) else set_collected_field('', 'email_address', $4); accept_collected_entry('', false); ) " } # 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 source_address = { label = "$lang_stats.field_labels.source_address" log_field = "source_address" type = "string" } # source_address domain_description = { label = "$lang_stats.field_labels.domain_description" log_field = "domain_description" type = "string" } # domain_description location = { label = "$lang_stats.field_labels.location" log_field = "location" type = "string" suppress_top = 0 suppress_bottom = 3 } # location type = { label = "$lang_stats.field_labels.type" log_field = "type" type = "string" } # type list = { label = "$lang_stats.field_labels.list" log_field = "list" type = "string" } # list email_address = { label = "$lang_stats.field_labels.email_address" log_field = "email_address" type = "string" } # email_address } # database.fields database.numerical_fields = { events = { label = "$lang_stats.field_labels.events" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # events } # database.numerical_fields log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'events = 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_address = true domain_description = true location = true type = true list = true email_address = true } # report_groups } # create_profile_wizard_options not_supported = { bandwidth = true sessions = true pageviews = true visitors = true } # not_supported } # mailman_subscribe