unix_sendmail = { # sessions, hits, bandwidth, pageviews, and visitors. # The name of the log format log.format.format_label = "UNIX Sendmail Log Format" 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" # Log entries are called messages statistics.miscellaneous.entry_name = "messages" # Expire collected entries after they're not used for 1000 lines log.format.collected_entry_lifespan = 1000 # Log fields log.fields = { server = { label = "$lang_stats.field_labels.server" type = "flat" index = 0 subindex = 0 } # server daemon = { label = "$lang_stats.field_labels.daemon" type = "flat" index = 0 subindex = 0 } # daemon from = { label = "$lang_stats.field_labels.from" type = "hierarchical" index = 0 subindex = 0 hierarchy_dividers = "@" left_to_right = false leading_divider = "false" } # from to = { label = "$lang_stats.field_labels.to" type = "hierarchical" index = 0 subindex = 0 hierarchy_dividers = "@" left_to_right = false leading_divider = "false" } # to mailer = { label = "$lang_stats.field_labels.mailer" type = "flat" index = 0 subindex = 0 } # mailer stat = { label = "$lang_stats.field_labels.stat" type = "flat" index = 0 subindex = 0 } # stat size = { label = "$lang_stats.field_labels.size" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # size class = { label = "$lang_stats.field_labels.class" type = "flat" index = 0 subindex = 0 } # class pri = { label = "$lang_stats.field_labels.pri" type = "flat" index = 0 subindex = 0 } # pri nrcpts = { label = "$lang_stats.field_labels.nrcpts" type = "flat" index = 0 subindex = 0 } # nrcpts msgid = { label = "$lang_stats.field_labels.msgid" type = "flat" index = 0 subindex = 0 } # msgid proto = { label = "$lang_stats.field_labels.proto" type = "flat" index = 0 subindex = 0 } # proto relay = { label = "$lang_stats.field_labels.relay" type = "flat" index = 0 subindex = 0 } # relay reject = { label = "$lang_stats.field_labels.reject" type = "flat" index = 0 subindex = 0 } # reject delay = { label = "$lang_stats.field_labels.delay" type = "flat" index = 0 subindex = 0 } # delay xdelay = { label = "$lang_stats.field_labels.xdelay" type = "flat" index = 0 subindex = 0 } # xdelay } # log.fields # # Log Parsing Filters log.parsing_filters = { # rekey on from= lines. The syslog parses the date/time right before this, into the empty key, and we rekey here # to use the real key. rekey = { label = "rekey" comment = "" value = "if (matches_regular_expression(current_log_line(), ' ([^: ]+): from=')) then rekey_collected_entry('', $1);" } # rekey # Parse out all the beginning fields 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('([a-z0-9-]*)\\\\[[0-9]*\\\\]:.* ([^: ]+): (from|to)=', 'daemon,*KEY*')" } # 1 # Parse out the comma-separated, =-divided variables 2 = { label = "2" comment = "" value = "collect_listed_fields_using_regexp(' ([^: ]+): (from=.*)$', ', ', '=', '')" } # 2 # Parse out the comma-separated, =-divided variables 3 = { label = "3" comment = "" value = "collect_listed_fields_using_regexp(' ([^: ]+): (to=.*)$', ', ', '=', '')" } # 3 # Accept this log entry on to= lines 4 = { label = "4" comment = "" value = "accept_collected_entry_using_regexp(' ([^: ]+): to=', false)" } # 4 } # log.parsing_filters # Database fields database.fields = { 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 = 3 } # to server = { label = "$lang_stats.field_labels.server" log_field = "server" type = "string" suppress_top = 0 suppress_bottom = 2 } # server daemon = { label = "$lang_stats.field_labels.daemon" log_field = "daemon" type = "string" suppress_top = 0 suppress_bottom = 2 } # daemon mailer = { label = "$lang_stats.field_labels.mailer" log_field = "mailer" type = "string" suppress_top = 0 suppress_bottom = 2 } # mailer stat = { label = "$lang_stats.field_labels.stat" log_field = "stat" type = "string" suppress_top = 0 suppress_bottom = 2 } # stat class = { label = "$lang_stats.field_labels.class" log_field = "class" type = "string" suppress_top = 0 suppress_bottom = 2 } # class pri = { label = "$lang_stats.field_labels.pri" log_field = "pri" type = "string" suppress_top = 0 suppress_bottom = 2 } # pri proto = { label = "$lang_stats.field_labels.proto" log_field = "proto" type = "string" suppress_top = 0 suppress_bottom = 2 } # proto relay = { label = "$lang_stats.field_labels.relay" log_field = "relay" type = "string" suppress_top = 0 suppress_bottom = 2 } # relay reject = { label = "$lang_stats.field_labels.reject" log_field = "reject" type = "string" suppress_top = 0 suppress_bottom = 2 } # reject } # database.fields 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 size = { label = "$lang_stats.field_labels.size" default = false requires_log_field = true log_field = "size" type = "float" display_format_type = "bandwidth" } # size delay = { label = $lang_stats.field_labels.delay default = false requires_log_field = true type = int display_format_type = duration_compact } # delay xdelay = { label = $lang_stats.field_labels.xdelay default = false requires_log_field = true type = int display_format_type = duration_compact } # xdelay nrcpts = { label = "$lang_stats.field_labels.nrcpts" default = false requires_log_field = true type = int display_format_type = "integer" } # 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 } # report_groups } # create_profile_wizard_options not_supported = { visitors = true sessions = true pageviews = true individualhosts = true } # not_supported } # unix_sendmail