# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. sidewinder = { # The name of the log format log.format.format_label = "Sidewinder 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 = "^[A-Z][a-z][a-z] *[0-9]+ [0-9]+:[0-9]+:[0-9]+ [0-9]+ [A-Z]* *[^ ]+ [^ ]+ [^ ]+ [^ ]+$" # The format of dates and times in this log log.format.date_format = "mmm dd hh:mm:ss yyyy" log.format.time_format = "mmm dd hh:mm:ss yyyy" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Log fields log.fields = { date_time = { label = "$lang_stats.field_labels.date_time" type = "date_time" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # date_time type1 = { label = "$lang_stats.field_labels.type1" type = "flat" index = 0 subindex = 0 } # type1 type2 = { label = "$lang_stats.field_labels.type2" type = "flat" index = 0 subindex = 0 } # type2 type3 = { label = "$lang_stats.field_labels.type3" type = "flat" index = 0 subindex = 0 } # type3 type4 = { label = "$lang_stats.field_labels.type4" type = "flat" index = 0 subindex = 0 } # type4 pid = { label = "$lang_stats.field_labels.pid" type = "flat" index = 0 subindex = 0 } # pid ruid = { label = "$lang_stats.field_labels.ruid" type = "flat" index = 0 subindex = 0 } # ruid euid = { label = "$lang_stats.field_labels.euid" type = "flat" index = 0 subindex = 0 } # euid pgid = { label = "$lang_stats.field_labels.pgid" type = "flat" index = 0 subindex = 0 } # pgid fid = { label = "$lang_stats.field_labels.fid" type = "flat" index = 0 subindex = 0 } # fid logid = { label = "$lang_stats.field_labels.logid" type = "flat" index = 0 subindex = 0 } # logid cmd = { label = "$lang_stats.field_labels.cmd" type = "flat" index = 0 subindex = 0 } # cmd domain = { label = "$lang_stats.field_labels.domain" type = "flat" index = 0 subindex = 0 } # domain edomain = { label = "$lang_stats.field_labels.edomain" type = "flat" index = 0 subindex = 0 } # edomain srcip = { label = "$lang_stats.field_labels.srcip" type = "host" index = 0 subindex = 0 hierarchy_dividers = "." left_to_right = false leading_divider = "false" } # srcip srcport = { label = "$lang_stats.field_labels.srcport" type = "flat" index = 0 subindex = 0 } # srcport srcburb = { label = "$lang_stats.field_labels.srcburb" type = "flat" index = 0 subindex = 0 } # srcburb dstip = { label = "$lang_stats.field_labels.dstip" type = "flat" index = 0 subindex = 0 } # dstip dstport = { label = "$lang_stats.field_labels.dstport" type = "flat" index = 0 subindex = 0 } # dstport dstburb = { label = "$lang_stats.field_labels.dstburb" type = "flat" index = 0 subindex = 0 } # dstburb protocol = { label = "$lang_stats.field_labels.protocol" type = "flat" index = 0 subindex = 0 } # protocol service_name = { label = "$lang_stats.field_labels.service_name" type = "flat" index = 0 subindex = 0 } # service_name status = { label = "$lang_stats.field_labels.status" type = "flat" index = 0 subindex = 0 } # status netsessid = { label = "$lang_stats.field_labels.netsessid" type = "flat" index = 0 subindex = 0 } # netsessid request_command = { label = "$lang_stats.field_labels.request_command" type = "flat" index = 0 subindex = 0 } # request_command url = { label = "$lang_stats.field_labels.url" type = "page" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # url bytes_written_to_client = { label = "$lang_stats.field_labels.bytes_written_to_client" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # bytes_written_to_client bytes_written_to_server = { label = "$lang_stats.field_labels.bytes_written_to_server" type = "flat" index = 0 subindex = 0 } # bytes_written_to_server reason = { label = "$lang_stats.field_labels.reason" type = "flat" index = 0 subindex = 0 } # reason } # log.fields # # Log Parsing Filters log.parsing_filters = { # Accept on date line 1 = { label = "1" comment = "" value = "accept_collected_entry_using_regexp('^()[A-Z][a-z][a-z] *[0-9]+ [0-9]+:[0-9]+:[0-9]+ [0-9]+ [A-Z]*', false)" } # 1 # Parse out date,time,type1,type2,type3,type4 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('^()([A-Z][a-z][a-z] *[0-9]+ [0-9]+:[0-9]+:[0-9]+ [0-9]+) [A-Z]* *([^ ]+) ([^ ]+) ([^ ]+) ([^ ]+)$', '*KEY*,date_time,type1,type2,type3,type4')" } # 2 # Parse out the space-separated, : divided variables 3 = { label = "3" comment = "" value = "collect_listed_fields_using_regexp('^()(.*)$', ' ', ': ', 'url=url')" } # 3 } # 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 url = { label = "$lang_stats.field_labels.url" log_field = "url" type = "string" suppress_top = 0 suppress_bottom = 2 } # url file_type = { label = "$lang_stats.field_labels.file_type" log_field = "file_type" type = "string" suppress_top = 0 suppress_bottom = 2 } # file_type worm = { label = "$lang_stats.field_labels.worm" log_field = "worm" type = "string" suppress_top = 0 suppress_bottom = 2 } # worm srcip = { label = "$lang_stats.field_labels.srcip" log_field = "srcip" type = "string" suppress_top = 0 suppress_bottom = 2 } # srcip srcport = { label = "$lang_stats.field_labels.srcport" log_field = "srcport" type = "string" suppress_top = 0 suppress_bottom = 2 } # srcport srcburb = { label = "$lang_stats.field_labels.srcburb" log_field = "srcburb" type = "string" suppress_top = 0 suppress_bottom = 2 } # srcburb dstip = { label = "$lang_stats.field_labels.dstip" log_field = "dstip" type = "string" suppress_top = 0 suppress_bottom = 2 } # dstip dstport = { label = "$lang_stats.field_labels.dstport" log_field = "dstport" type = "string" suppress_top = 0 suppress_bottom = 2 } # dstport dstburb = { label = "$lang_stats.field_labels.dstburb" log_field = "dstburb" type = "string" suppress_top = 0 suppress_bottom = 2 } # dstburb type1 = { label = "$lang_stats.field_labels.type1" log_field = "type1" type = "string" suppress_top = 0 suppress_bottom = 2 } # type1 type2 = { label = "$lang_stats.field_labels.type2" log_field = "type2" type = "string" suppress_top = 0 suppress_bottom = 2 } # type2 type3 = { label = "$lang_stats.field_labels.type3" log_field = "type3" type = "string" suppress_top = 0 suppress_bottom = 2 } # type3 type4 = { label = "$lang_stats.field_labels.type4" log_field = "type4" type = "string" suppress_top = 0 suppress_bottom = 2 } # type4 pid = { label = "$lang_stats.field_labels.pid" log_field = "pid" type = "string" suppress_top = 0 suppress_bottom = 2 } # pid ruid = { label = "$lang_stats.field_labels.ruid" log_field = "ruid" type = "string" suppress_top = 0 suppress_bottom = 2 } # ruid euid = { label = "$lang_stats.field_labels.euid" log_field = "euid" type = "string" suppress_top = 0 suppress_bottom = 2 } # euid pgid = { label = "$lang_stats.field_labels.pgid" log_field = "pgid" type = "string" suppress_top = 0 suppress_bottom = 2 } # pgid fid = { label = "$lang_stats.field_labels.fid" log_field = "fid" type = "string" suppress_top = 0 suppress_bottom = 2 } # fid logid = { label = "$lang_stats.field_labels.logid" log_field = "logid" type = "string" suppress_top = 0 suppress_bottom = 2 } # logid cmd = { label = "$lang_stats.field_labels.cmd" log_field = "cmd" type = "string" suppress_top = 0 suppress_bottom = 2 } # cmd domain = { label = "$lang_stats.field_labels.domain" log_field = "domain" type = "string" suppress_top = 0 suppress_bottom = 2 } # domain edomain = { label = "$lang_stats.field_labels.edomain" log_field = "edomain" type = "string" suppress_top = 0 suppress_bottom = 2 } # edomain protocol = { label = "$lang_stats.field_labels.protocol" log_field = "protocol" type = "string" suppress_top = 0 suppress_bottom = 2 } # protocol service_name = { label = "$lang_stats.field_labels.service_name" log_field = "service_name" type = "string" suppress_top = 0 suppress_bottom = 2 } # service_name status = { label = "$lang_stats.field_labels.status" log_field = "status" type = "string" suppress_top = 0 suppress_bottom = 2 } # status netsessid = { label = "$lang_stats.field_labels.netsessid" log_field = "netsessid" type = "string" suppress_top = 0 suppress_bottom = 2 } # netsessid request_command = { label = "$lang_stats.field_labels.request_command" log_field = "request_command" type = "string" suppress_top = 0 suppress_bottom = 2 } # request_command reason = { label = "$lang_stats.field_labels.reason" log_field = "reason" type = "string" suppress_top = 0 suppress_bottom = 2 } # reason agent_type = "" user_name = "" auth_method = "" acl_id = "" cache_hit = "" acl_position = "" } # database.fields # Log Filters log.filters = { 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 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 log.field_options = { sessions_page_field = "url" sessions_visitor_id_field = "srcip" sessions_event_field = "page_views" } # log.field_options 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 = "srcip" type = "unique" display_format_type = "integer" } # visitors bytes_written_to_client = { label = "$lang_stats.field_labels.bytes_written_to_client" default = false requires_log_field = true log_field = "bytes_written_to_client" type = "float" display_format_type = "bandwidth" } # bytes_written_to_client } # database.numerical_fields create_profile_wizard_options = { # How the reports should be grouped in the report menu report_groups = { date_time_group = "" } # report_groups } # create_profile_wizard_options } # sidewinder