beta_mailman_post = { # The name of the log format log.format.format_label = "Mailman Post Log Format (BETA)" 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 few 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]*\\) post to " log.format.autodetect_lines = 3 # Log fields log.fields = { date = "" time = "" posting_user = "" list = "" size = "" status = "" message_id = "" posts = "" } # log.fields # Log Parsing Filters log.parsing_filters.parse = ` if (matches_regular_expression(current_log_line(), "^([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]*\\) post to ([^ ]+) from ([^,]+), size=([0-9]+), (.*)$")) then ( date = $2 . '/' . $1 . '/' . $4; time = $3; list = $5; posting_user = $6; size = $7; v.remainder = $8; if (matches_regular_expression(v.remainder, '^message-id=<([^>]*)>, (.*)$')) then ( message_id = $1; status = $2; ); else status = v.remainder; posts = 1; ); ` # Database fields database.fields = { date_time = "" day_of_week = "" posting_user = "" list = "" status = "" message_id = "" } # database.fields database.numerical_fields = { posts = { default = true entries_field = true } # posts size = { default = true type = "float" display_format_type = "bandwidth" } # size } # database.numerical_fields create_profile_wizard_options = { # How the reports should be grouped in the report menu report_groups = { date_time_group = "" } # report_groups } # create_profile_wizard_options } # beta_mailman_post