# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. symantec_enterprise_firewall = { # The name of the log format log.format.format_label = "Symantec Enterprise Firewall Log Format" log.miscellaneous.log_data_type = "syslog_required" log.miscellaneous.log_format_type = "firewall" # The log is in this format if any of the first 100 lines match this regular expression log.format.autodetect_regular_expression = "Statistics: duration=[0-9.]+ user=[^ ]+ auth=[^ ]+ " log.format.autodetect_lines = "100" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Entries are called accesses statistics.miscellaneous.entry_name = "accesses" # Log fields log.fields = { duration = { label = "$lang_stats.field_labels.duration" type = "flat" index = 0 subindex = 0 } # duration user = { label = "$lang_stats.field_labels.user" type = "flat" index = 0 subindex = 0 } # user auth = { label = "$lang_stats.field_labels.auth" type = "flat" index = 0 subindex = 0 } # auth id = { label = "$lang_stats.field_labels.id" type = "flat" index = 0 subindex = 0 } # id sent = { label = "$lang_stats.field_labels.sent" type = "flat" index = 0 subindex = 0 } # sent rcvd = { label = "$lang_stats.field_labels.rcvd" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # rcvd srcif = { label = "$lang_stats.field_labels.srcif" type = "flat" index = 0 subindex = 0 } # srcif src = { label = "$lang_stats.field_labels.src" type = "host" index = 0 subindex = 0 hierarchy_dividers = "." left_to_right = false leading_divider = "false" } # src src_port = { label = "$lang_stats.field_labels.src_port" type = "flat" index = 0 subindex = 0 } # src_port svsrc = { label = "$lang_stats.field_labels.svsrc" type = "flat" index = 0 subindex = 0 } # svsrc svsrc_port = { label = "$lang_stats.field_labels.svsrc_port" type = "flat" index = 0 subindex = 0 } # svsrc_port dstif = { label = "$lang_stats.field_labels.dstif" type = "flat" index = 0 subindex = 0 } # dstif dst = { label = "$lang_stats.field_labels.dst" type = "flat" index = 0 subindex = 0 } # dst dst_port = { label = "$lang_stats.field_labels.dst_port" type = "flat" index = 0 subindex = 0 } # dst_port op = { label = "$lang_stats.field_labels.op" type = "flat" index = 0 subindex = 0 } # op url = { label = "$lang_stats.field_labels.url" type = "page" index = 0 subindex = 0 hierarchy_dividers = "/?" left_to_right = true leading_divider = "true" } # url result = { label = "$lang_stats.field_labels.result" type = "flat" index = 0 subindex = 0 } # result proto = { label = "$lang_stats.field_labels.proto" type = "flat" index = 0 subindex = 0 } # proto } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse out the space-separated, =-divided variables 1 = { label = "1" comment = "" value = "collect_listed_fields_using_regexp('()Statistics: (.*)$', ' ', '=', 'arg=url')" } # 1 # Accept this entry 2 = { label = "2" comment = "" value = "accept_collected_entry_using_regexp('()', false)" } # 2 } # log.parsing_filters # Database fields database.fields = { user = { label = "$lang_stats.field_labels.user" log_field = "user" type = "string" suppress_top = 0 suppress_bottom = 2 } # user auth = { label = "$lang_stats.field_labels.auth" log_field = "auth" type = "string" suppress_top = 0 suppress_bottom = 2 } # auth id = { label = "$lang_stats.field_labels.id" log_field = "id" type = "string" suppress_top = 0 suppress_bottom = 2 } # id src = { label = "$lang_stats.field_labels.src" log_field = "src" type = "string" suppress_top = 0 suppress_bottom = 2 } # src src_port = { label = "$lang_stats.field_labels.src_port" log_field = "src_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # src_port srcif = { label = "$lang_stats.field_labels.srcif" log_field = "srcif" type = "string" suppress_top = 0 suppress_bottom = 2 } # srcif svsrc = { label = "$lang_stats.field_labels.svsrc" log_field = "svsrc" type = "string" suppress_top = 0 suppress_bottom = 2 } # svsrc svsrc_port = { label = "$lang_stats.field_labels.svsrc_port" log_field = "svsrc_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # svsrc_port dst = { label = "$lang_stats.field_labels.dst" log_field = "dst" type = "string" suppress_top = 0 suppress_bottom = 2 } # dst dst_port = { label = "$lang_stats.field_labels.dst_port" log_field = "dst_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # dst_port dstif = { label = "$lang_stats.field_labels.dstif" log_field = "dstif" type = "string" suppress_top = 0 suppress_bottom = 2 } # dstif op = { label = "$lang_stats.field_labels.op" log_field = "op" type = "string" suppress_top = 0 suppress_bottom = 2 } # op url = { label = "$lang_stats.field_labels.url" log_field = "url" type = "string" suppress_top = 1 suppress_bottom = 3 } # url result = { label = "$lang_stats.field_labels.result" log_field = "result" type = "string" suppress_top = 0 suppress_bottom = 2 } # result proto = { label = "$lang_stats.field_labels.proto" log_field = "proto" type = "string" suppress_top = 0 suppress_bottom = 2 } # proto file_type = { label = "$lang_stats.field_labels.file_type" log_field = "file_type" type = "string" suppress_top = 0 suppress_bottom = 2 } # file_type 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 = { # Extract the IP and port from src 1 = { label = "1" comment = "" value = "if (matches_regular_expression(src_port, '^[0-9.]+/([0-9]+)$')) then src = $1;" } # 1 2 = { label = "2" comment = "" value = "if (matches_regular_expression(src, '^([0-9.]+)/[0-9]+$')) then src = $1;" } # 2 # Extract the IP and port from src 3 = { label = "3" comment = "" value = "if (matches_regular_expression(dst_port, '^[0-9.]+/([0-9]+)$')) then dst = $1;" } # 3 4 = { label = "4" comment = "" value = "if (matches_regular_expression(dst, '^([0-9.]+)/[0-9]+$')) then dst = $1;" } # 4 # Extract the IP and port from svsrc 5 = { label = "5" comment = "" value = "if (matches_regular_expression(svsrc_port, '^[0-9.]+/([0-9]+)$')) then svsrc = $1;" } # 5 6 = { label = "6" comment = "" value = "if (matches_regular_expression(svsrc, '^([0-9.]+)/[0-9]+$')) then svsrc = $1;" } # 6 remove_query = { label = "$lang_admin.log_filters.remove_query_label" comment = "$lang_admin.log_filters.remove_query_comment" value = "if (contains(url, '?')) then url = substr(url, 0, index(url, '?') + 1) . '(parameters)';" } # remove_query detect_page_views = { label = '$lang_admin.log_filters.detect_page_views_label' comment = '$lang_admin.log_filters.detect_page_views_comment' value = "if ((file_type eq 'JPEG') or (file_type eq 'JPG') or (file_type eq 'GIF') or (file_type eq 'ICO') or (file_type eq 'PNG') or (file_type eq 'CSS') or (file_type eq 'SWF') or (file_type eq 'JS')) then page_views = 0; else page_views = 1;" } # detect_page_views simplify_url = { label = "$lang_admin.log_filters.simplify_url_label" comment = "$lang_admin.log_filters.simplify_url_comment" value = "if (matches_regular_expression(url, '^([^:]+://[^/]+/)')) then url = $1 . '(omitted)'" } # simplify_url strip_non_page_views = { label = '$lang_admin.log_filters.strip_non_page_views_label' comment = '$lang_admin.log_filters.strip_non_page_views_comment' value = "if (page_views == 0) then url = substr(url, 0, last_index(url, '/') + 1) . '(nonpage)';" } # strip_non_page_views mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'accesses = 1;' } # mark_entry } # log.filters log.field_options = { sessions_page_field = "url" sessions_visitor_id_field = "src" sessions_event_field = "page_views" } # log.field_options database.numerical_fields = { accesses = { label = "$lang_stats.field_labels.accesses" default = false requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # accesses page_views = { label = "$lang_stats.field_labels.page_views" default = true requires_log_field = false type = "int" display_format_type = "integer" } # page_views visitors = { label = "$lang_stats.field_labels.visitors" default = false requires_log_field = true log_field = "src" type = "unique" display_format_type = "integer" } # visitors rcvd = { label = "$lang_stats.field_labels.rcvd" default = false requires_log_field = true log_field = "rcvd" type = "float" display_format_type = "bandwidth" } # rcvd } # database.numerical_fields create_profile_wizard_options = { host_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" user = true auth = true id = true src = true src_port = true srcif = true svsrc = true svsrc_port = true dst = true dst_port = true dstif = true op = true url = true result = true proto = true file_type = true msg = true } # report_groups } # create_profile_wizard_options not_supported = { } # not_supported } # symantec_enterprise_firewall