# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. rapid_firewall = { # sessions, hits, bandwidth, pageviews, and visitors. # The name of the log format log.format.format_label = "Rapid Firewall Log Format" log.miscellaneous.log_data_type = "firewall" log.miscellaneous.log_format_type = "firewall" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "id=.*time=.*fw=" # All log field parsing will be done using the parsing filters #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 = { 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 ip_address = { label = "$lang_stats.field_labels.ip_address" type = "flat" index = 0 subindex = 0 } # ip_address fw = { label = "$lang_stats.field_labels.fw" type = "flat" index = 0 subindex = 0 } # fw pri = { label = "$lang_stats.field_labels.pri" type = "flat" index = 0 subindex = 0 } # pri rule = { label = "$lang_stats.field_labels.rule" type = "flat" index = 0 subindex = 0 } # rule src = { label = "$lang_stats.field_labels.src" type = "flat" index = 0 subindex = 0 } # src dst = { label = "$lang_stats.field_labels.dst" type = "flat" index = 0 subindex = 0 } # dst proto = { label = "$lang_stats.field_labels.proto" type = "flat" index = 0 subindex = 0 } # proto sport = { label = "$lang_stats.field_labels.sport" type = "flat" index = 0 subindex = 0 } # sport dport = { label = "$lang_stats.field_labels.dport" type = "flat" index = 0 subindex = 0 } # dport indev = { label = "$lang_stats.field_labels.indev" type = "flat" index = 0 subindex = 0 } # indev inport = { label = "$lang_stats.field_labels.inport" type = "flat" index = 0 subindex = 0 } # inport rc = { label = "$lang_stats.field_labels.rc" type = "flat" index = 0 subindex = 0 } # rc msg = { label = "$lang_stats.field_labels.msg" type = "flat" index = 0 subindex = 0 } # msg } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse the IP and date on every entry 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('^\"()([A-Z][a-z]+ [0-9 ][0-9]) ([0-9]+:[0-9]+:[0-9]+) ([0-9.]+) id=[a-z]+ time=\"\"[0-9]+-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+\"\"', '*KEY*,date,time,ip_address')" } # 1 # Parse out some fields 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('() fw=([A-Z:-]+) pri=([0-9]+) rule=\"\"([^\"]+)\"\" src=([0-9.]+) dst=([0-9.]+)', '*KEY*,fw,pri,rule,src,dst')" } # 2 # Parse out some fields 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('() proto=([^ ]+) sport=([0-9]+) dport=([0-9]+) indev=([0-9]+) inport=([^ ]+)', '*KEY*,proto,sport,dport,indev,inport')" } # 3 # Parse out others 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('() rc=([^ ]+) msg=\"\"([^\"]+)\"\"', '*KEY*,rc,msg')" } # 4 # Accept this entry 5 = { label = "5" comment = "" value = "accept_collected_entry_using_regexp('()', 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 ip_address = { label = "$lang_stats.field_labels.ip_address" log_field = "ip_address" type = "string" suppress_top = 0 suppress_bottom = 2 } # ip_address fw = { label = "$lang_stats.field_labels.fw" log_field = "fw" type = "string" suppress_top = 0 suppress_bottom = 2 } # fw pri = { label = "$lang_stats.field_labels.pri" log_field = "pri" type = "string" suppress_top = 0 suppress_bottom = 2 } # pri rule = { label = "$lang_stats.field_labels.rule" log_field = "rule" type = "string" suppress_top = 0 suppress_bottom = 2 } # rule src = { label = "$lang_stats.field_labels.src" log_field = "src" type = "string" suppress_top = 0 suppress_bottom = 2 } # src dst = { label = "$lang_stats.field_labels.dst" log_field = "dst" type = "string" suppress_top = 0 suppress_bottom = 2 } # dst proto = { label = "$lang_stats.field_labels.proto" log_field = "proto" type = "string" suppress_top = 0 suppress_bottom = 2 } # proto sport = { label = "$lang_stats.field_labels.sport" log_field = "sport" type = "string" suppress_top = 0 suppress_bottom = 2 } # sport dport = { label = "$lang_stats.field_labels.dport" log_field = "dport" type = "string" suppress_top = 0 suppress_bottom = 2 } # dport indev = { label = "$lang_stats.field_labels.indev" log_field = "indev" type = "string" suppress_top = 0 suppress_bottom = 2 } # indev inport = { label = "$lang_stats.field_labels.inport" log_field = "inport" type = "string" suppress_top = 0 suppress_bottom = 2 } # inport rc = { label = "$lang_stats.field_labels.rc" log_field = "rc" type = "string" suppress_top = 0 suppress_bottom = 2 } # rc msg = { label = "$lang_stats.field_labels.msg" log_field = "msg" type = "string" suppress_top = 0 suppress_bottom = 2 } # msg } # 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 = 'hits = 1;' } # mark_entry } # log.filters 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 visitors = { label = "$lang_stats.field_labels.visitors" default = false requires_log_field = true log_field = "src" type = "unique" display_format_type = "integer" } # visitors } # database.numerical_fields create_profile_wizard_options = { date_time_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" ip_address = true fw = true pri = true rule = true src = true dst = true proto = true sport = true dport = true indev = true inport = true rc = true msg = true } # report_groups } # create_profile_wizard_options not_supported = { sessions = true pageviews = true } # not_supported } # rapid_firewall