# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. mirapoint_smtp = { plugin_version = "1.1.1" # ????-??-?? - ??? - 1.0 - Initial implementation # 2009-09-10 - GMF - 1.1 - Fixed bug which caused error on profile creation (new in v8), due to lack of date field. # 2011-06-24 - 1.1.1 - MSG - Edited info lines. info.1.manufacturer = "Mirapoint" info.1.device = "SMTP" info.1.version.1 = "" # The name of the log format log.format.format_label = "Mirapoint SMTP Log Format" log.miscellaneous.log_data_type = "mail_smtp" 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 = "^ [0-9][0-9]:[0-9][0-9]:[0-9][0-9]" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # The format of dates and times in this log log.format.date_format = "mmm dd" log.format.time_format = "hh:mm:ss" # Log fields log.fields = { date = "" time = { label = "$lang_stats.field_labels.time" type = "time" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # time source_email = { label = "$lang_stats.field_labels.source_email" type = "flat" index = 0 subindex = 0 } # source_email size = { label = "$lang_stats.field_labels.size" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # size result = { label = "$lang_stats.field_labels.result" type = "flat" index = 0 subindex = 0 } # result source_hostname = { label = "$lang_stats.field_labels.source_hostname" type = "flat" index = 0 subindex = 0 } # source_hostname source_ip = { label = "$lang_stats.field_labels.source_ip" type = "flat" index = 0 subindex = 0 } # source_ip destination_email = { label = "$lang_stats.field_labels.destination_email" type = "flat" index = 0 subindex = 0 } # destination_email } # log.fields # # Log Parsing Filters log.parsing_filters = { # 2009-09-10 - GMF - No date in the log data or filename; use today's date set_date = `date = substr(epoc_to_date_time(now()), 0, 11)` # Parse out source address 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('^()([^ ]+)$', '*KEY*,source_email')" } # 1 # Parse out time, size, source hostname, source IP 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('()([0-9:]+) received CLR *([0-9]*) *[0-9]+ *([^[ ]*) \\\\[([0-9.]*)\\\\]', '*KEY*,time,size,source_hostname,source_ip')" } # 2 # Parse out destination email 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('()[0-9:]+ (sent CLR) \\\\([^)]*\\\\) ([^ ]*)$', '*KEY*,result,destination_email')" } # 3 # Parse out collection failed 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('()[0-9:]+ (collection failed)', '*KEY*,result')" } # 4 # Accept this log entry 5 = { label = "5" comment = "" value = "accept_collected_entry_using_regexp('() (sent CLR|collection failed)', false)" } # 5 } # 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_email = { label = "$lang_stats.field_labels.source_email" log_field = "source_email" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_email source_hostname = { label = "$lang_stats.field_labels.source_hostname" log_field = "source_hostname" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_hostname source_ip = { label = "$lang_stats.field_labels.source_ip" log_field = "source_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_ip result = { label = "$lang_stats.field_labels.result" log_field = "result" type = "string" suppress_top = 0 suppress_bottom = 2 } # result destination_email = { label = "$lang_stats.field_labels.destination_email" log_field = "destination_email" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_email } # database.fields database.numerical_fields = { hits = { label = "$lang_stats.field_labels.hits" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # hits size = { label = "$lang_stats.field_labels.size" default = false requires_log_field = true log_field = "size" type = "int" integer_bits = 64 display_format_type = "bandwidth" } # size } # database.numerical_fields log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'hits = 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 = { date_time_group = "" source_email = true source_hostname = true source_ip = true result = true destination_email = true } # report_groups } # create_profile_wizard_options not_supported = { visitors = true sessions = true pageviews = true individualhosts = true } # not_supported } # mirapoint_smtp