beta_sendmail = { # The name of the log format log.format.format_label = "Sendmail Log Format (BETA)" log.miscellaneous.log_data_type = "syslog_required" 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 = " [^ ]* (sendmail|sm-mta|sm-queue|sm-msp-queue)\\[[0-9]*\\]: " log.format.autodetect_lines = "100" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Expire collected entries after they're not used for 1000 lines log.format.collected_entry_lifespan = 1000 log.format.discard_expired_entries = true # Log fields log.fields = { server = "" daemon = "" from = { type = "hierarchical" hierarchy_dividers = "@" left_to_right = false leading_divider = "false" } # from to = { type = "hierarchical" hierarchy_dividers = "@" left_to_right = false leading_divider = "false" } # to mailer = "" stat = "" size = "" class = "" pri = "" nrcpts = "" msgid = "" proto = "" relay = "" reject = "" delay = "" xdelay = "" ctladdr = "" dsn = "" } # log.fields # Log Parsing Filters log.parsing_filters.parse = ` if (matches_regular_expression(v.syslog_message, '^[^[]+\\\\[[0-9]+\\\\]: ([^:]+): (.*)$')) then ( v.key = $1; v.fields = $2; if (starts_with(v.fields, "from=")) then ( collect_listed_fields(v.key, v.fields, ", ", "=", ""); ) else if (starts_with(v.fields, "to=")) then ( collect_listed_fields(v.key, v.fields, ", ", "=", ""); set_collected_field(v.key, 'date', get_collected_field('', 'date')); set_collected_field(v.key, 'time', get_collected_field('', 'time')); set_collected_field(v.key, 'logging_device', get_collected_field('', 'logging_device')); set_collected_field(v.key, 'syslog_priority', get_collected_field('', 'syslog_priority')); v.stat = get_collected_field(v.key, 'stat'); if (matches_regular_expression(v.stat, '^([^(]*[^ ]) *\\\\(')) then set_collected_field(v.key, 'stat', $1); accept_collected_entry(v.key, false); ); ); ` # Database fields database.fields = { from = { itemnums_hash_function = "mult_sum_c_i_8" } to = { itemnums_hash_function = "mult_sum_c_i_8" } server = "" daemon = "" mailer = "" stat = "" class = "" pri = "" proto = "" relay = { itemnums_hash_function = "mult_sum_c_i_8" } reject = "" ctladdr = { itemnums_hash_function = "mult_sum_c_i_8" } dsn = "" } # database.fields database.numerical_fields = { messages = { default = true requires_log_field = false entries_field = true } # messages size = { type = "float" display_format_type = "bandwidth" } # size delay = { display_format_type = duration_compact } # delay xdelay = { display_format_type = duration_compact } # xdelay nrcpts = "" } # database.numerical_fields 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 create_profile_wizard_options = { date_time_tracking = true # How the reports should be grouped in the report menu report_groups = { from = true to = true server = true daemon = true mailer = true stat = true class = true pri = true nrcpts = true proto = true relay = true reject = true ctladdr = true dsn = true } # report_groups } # create_profile_wizard_options } # beta_sendmail