# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. vicomgateway = { # The name of the log format log.format.format_label = "VICOM Gateway Log Format" log.miscellaneous.log_data_type = "network" log.miscellaneous.log_format_type = "proxy_server" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^ *\\*\\*\\* VICOM Gateway" # 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.global_date_regular_expression = "^ *\\*\\*\\*.* generated ([^ ]*) " log.format.date_format = "d/m/yy" #log_time_format "h:mm:ss AM/PM" # 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 time 0 0 "" false false false "" host1 = { label = "$lang_stats.field_labels.host1" type = "host" index = 0 subindex = 0 hierarchy_dividers = "." left_to_right = false leading_divider = "false" } # host1 host1_ip = { label = "$lang_stats.field_labels.host1_ip" type = "flat" index = 0 subindex = 0 } # host1_ip host2 = { label = "$lang_stats.field_labels.host2" type = "flat" index = 0 subindex = 0 } # host2 host2_ip = { label = "$lang_stats.field_labels.host2_ip" type = "flat" index = 0 subindex = 0 } # host2_ip size = { label = "$lang_stats.field_labels.size" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # size protocol = { label = "$lang_stats.field_labels.protocol" type = "flat" index = 0 subindex = 0 } # protocol trash = { label = "$lang_stats.field_labels.trash" type = "flat" index = 0 subindex = 0 } # trash } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse a Traffic between line. Using "bytes" as the session ID to fool # Sawmill into not resetting the log entry every time-- we need the hostname information # to carry over from accept to accept, and empty session ID causes a reset with each accept. 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('^(Traffic) between ([^ ]*)( \\\\([0-9.]*\\\\)| *) and ([^ ]*)( \\\\([0-9.]*\\\\)| *) is ([0-9,]*) (bytes)', 'protocol,host1,host1_ip,host2,host2_ip,size,*KEY*')" } # 1 # Parse a traffic protocol line 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('^ *([A-Za-z0-9]*) traffic (amounts to|is) ([0-9,]*) (bytes) ', 'protocol,trash,size,*KEY*')" } # 2 # Accept if this is a traffic line 3 = { label = "3" comment = "" value = "accept_collected_entry_using_regexp('^ .*(bytes)', false)" } # 3 } # log.parsing_filters # Log Filters log.filters = { # This replaces commas in the size field, to make it a true integer 1 = { label = "1" comment = "" value = "size = replace_all(size, ',', '');" } # 1 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 # 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 protocol = { label = "$lang_stats.field_labels.protocol" log_field = "protocol" type = "string" suppress_top = 0 suppress_bottom = 2 } # protocol host1 = { label = "$lang_stats.field_labels.host1" log_field = "host1" type = "string" suppress_top = 0 suppress_bottom = 9 } # host1 host2 = { label = "$lang_stats.field_labels.host2" log_field = "host2" type = "string" suppress_top = 0 suppress_bottom = 9 } # host2 } # 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 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 = "" protocol = true host1 = true host2 = true } # report_groups } # create_profile_wizard_options not_supported = { visitors = true sessions = true pageviews = true } # not_supported } # vicomgateway