# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. war_ftp = { # The name of the log format log.format.format_label = "War FTP Log Format" log.miscellaneous.log_data_type = "ftp" log.miscellaneous.log_format_type = "ftp_server" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^[^a-zA-Z].*WAR-FTPD " # 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 = "yyyy/mm/dd" log.format.time_format = "h:mm" # Log entries are called downloads statistics.miscellaneous.entry_name = "downloads" # Log fields log.fields = { date = { label = "$lang_stats.field_labels.date" type = "date" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # date time = { label = "$lang_stats.field_labels.time" type = "time" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # time size = { label = "$lang_stats.field_labels.size" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # size user_name = { label = "$lang_stats.field_labels.user_name" type = "flat" index = 0 subindex = 0 } # user_name hostname = { label = "$lang_stats.field_labels.hostname" type = "host" index = 0 subindex = 0 hierarchy_dividers = "." left_to_right = false leading_divider = "false" } # hostname file = { label = "$lang_stats.field_labels.file" type = "hierarchical" index = 0 subindex = 0 hierarchy_dividers = "\\" left_to_right = true leading_divider = "false" } # file direction = { label = "$lang_stats.field_labels.direction" type = "flat" index = 0 subindex = 0 } # direction } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse date, time, user name, hostname 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('^\\\\[L ([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]*) ([^ ]*) \\\\[*[^]]*\\\\]* [A-Za-z ]* ([0-9.]*) logged', 'date,time,*KEY*,user_name,hostname')" } # 1 # Parse date, time, file, direction(sent), size 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('^\\\\[F ([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]*) ([^ ]*) \\\\[*[^]]*\\\\]* data (.*) File (sent) successfully. Size: ([0-9]*) bytes', 'date,time,*KEY*,user_name,file,direction,size')" } # 2 # Parse date, time, file, direction(received), size 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('^\\\\[F ([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]*) ([^ ]*) \\\\[*[^]]*\\\\]* data (.*) (Received) file successfully. Size: ([0-9]*) bytes', 'date,time,*KEY*,user_name,file,direction,size')" } # 3 # Accept on Received/Sentlog entry 4 = { label = "4" comment = "" value = "accept_collected_entry_using_regexp('^[^]]*\\\\] ([0-9]*) .* successfully. Size:', 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 hostname = { label = "$lang_stats.field_labels.hostname" log_field = "hostname" type = "string" suppress_top = 0 suppress_bottom = 2 display_format_type = "hostname" } # hostname user_name = { label = "$lang_stats.field_labels.user_name" log_field = "user_name" type = "string" suppress_top = 0 suppress_bottom = 2 } # user_name file = { label = "$lang_stats.field_labels.file" log_field = "file" type = "string" suppress_top = 0 suppress_bottom = 9 } # file direction = { label = "$lang_stats.field_labels.direction" log_field = "direction" type = "string" suppress_top = 0 suppress_bottom = 2 } # direction } # database.fields # Log Filters log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'downloads = 1;' } # mark_entry } # log.filters database.numerical_fields = { downloads = { label = "$lang_stats.field_labels.downloads" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # downloads visitors = { label = "$lang_stats.field_labels.visitors" default = false requires_log_field = true log_field = "hostname" type = "unique" display_format_type = "integer" } # visitors 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 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 = "" hostname = true user_name = true file = true direction = true } # report_groups } # create_profile_wizard_options not_supported = { sessions = true pageviews = true individualhosts = true } # not_supported } # war_ftp