# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. sims = { # The name of the log format log.format.format_label = "SIMS Log Format" log.miscellaneous.log_data_type = "generic" log.miscellaneous.log_format_type = "other" # 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] [0-9]* SMTP-[0-9]*\\(.*\\) Stream Created" # The format of dates and times in this log log.format.time_format = "hh:mm:ss" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Log fields log.fields = { time = { label = "$lang_stats.field_labels.time" type = "time" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # time source_address = { label = "$lang_stats.field_labels.source_address" type = "host" index = 0 subindex = 0 hierarchy_dividers = "." left_to_right = false leading_divider = "false" } # source_address destination_address = { label = "$lang_stats.field_labels.destination_address" type = "flat" index = 0 subindex = 0 } # destination_address hostname = { label = "$lang_stats.field_labels.hostname" type = "flat" index = 0 subindex = 0 } # hostname size = { label = "$lang_stats.field_labels.size" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # size } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse a sender accepted line 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('^([0-9][0-9]:[0-9][0-9]:[0-9][0-9]) [0-9]* SMTP-([0-9]*)\\\\(([^)]*)\\\\) Sending 250 <(.*)> sender accepted', 'time,*KEY*,hostname,source_address')" } # 1 # Parse a will relay line 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('^([0-9][0-9]:[0-9][0-9]:[0-9][0-9]) [0-9]* SMTP-([0-9]*)\\\\(([^)]*)\\\\) Sending 250 <(.*)> will relay', 'time,*KEY*,hostname,destination_address')" } # 2 # Parse a received line 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('^([0-9][0-9]:[0-9][0-9]:[0-9][0-9]) [0-9]* SMTP-([0-9]*)\\\\(([^)]*)\\\\) .S\\\\.[0-9a-z]*. received, ([0-9]*) bytes', 'time,*KEY*,hostname,size')" } # 3 # Accept when we get a received line 4 = { label = "4" comment = "" value = "accept_collected_entry_using_regexp('^[0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9]* SMTP-([0-9]*)\\\\([^)]*\\\\) .S\\\\.[0-9a-z]*. received, [0-9]* bytes', false)" } # 4 } # 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" suppress_top = 0 suppress_bottom = 3 } # source_address destination_address = { label = "$lang_stats.field_labels.destination_address" log_field = "destination_address" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_address hostname = { label = "$lang_stats.field_labels.hostname" log_field = "hostname" type = "string" suppress_top = 0 suppress_bottom = 2 display_format_type = "hostname" } # hostname } # 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 = "float" 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 host_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" source_address = true destination_address = true hostname = true } # report_groups } # create_profile_wizard_options not_supported = { sessions = true pageviews = true visitors = true } # not_supported } # sims