watchguard = { # The name of the log format log.format.format_label = "Watchguard 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 ten lines match this regular expression log.format.autodetect_regular_expression = "()(deny|allow) +([^ ]+) +([a-z0-9:]+) +([0-9]+) +([a-z]+) +([0-9]+) +([0-9]+) +([0-9.]+) +([0-9.]+) +([0-9]+) +([0-9]+) +\\(([^:]+)\\)" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Log fields log.fields = { process = { label = "$lang_stats.field_labels.process" type = "flat" index = 0 subindex = 0 } # process process_no = { label = "$lang_stats.field_labels.process_no" type = "flat" index = 0 subindex = 0 } # process_no permission = { label = "$lang_stats.field_labels.permission" type = "flat" index = 0 subindex = 0 } # permission direction = { label = "$lang_stats.field_labels.direction" type = "flat" index = 0 subindex = 0 } # direction port_name = { label = "$lang_stats.field_labels.port_name" type = "flat" index = 0 subindex = 0 } # port_name packet_len = { label = "$lang_stats.field_labels.packet_len" type = "flat" index = 0 subindex = 0 } # packet_len protocol = { label = "$lang_stats.field_labels.protocol" type = "flat" index = 0 subindex = 0 } # protocol header_len = { label = "$lang_stats.field_labels.header_len" type = "flat" index = 0 subindex = 0 } # header_len time_to_live = { label = "$lang_stats.field_labels.time_to_live" type = "flat" index = 0 subindex = 0 } # time_to_live source_ip = { label = "$lang_stats.field_labels.source_ip" type = "flat" index = 0 subindex = 0 } # source_ip destination_ip = { label = "$lang_stats.field_labels.destination_ip" type = "flat" index = 0 subindex = 0 } # destination_ip source_port = { label = "$lang_stats.field_labels.source_port" type = "flat" index = 0 subindex = 0 } # source_port destination_port = { label = "$lang_stats.field_labels.destination_port" type = "flat" index = 0 subindex = 0 } # destination_port parameter = { label = "$lang_stats.field_labels.parameter" type = "flat" index = 0 subindex = 0 } # parameter message = { label = "$lang_stats.field_labels.message" type = "flat" index = 0 subindex = 0 } # message } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse out some fields 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('()([^ ]+) +([^ ]+) +([a-z0-9:]+) +([0-9]+) +([a-z]+) +([0-9]+) +([0-9]+) +([0-9.]+) +([0-9.]+) +([0-9]+) +([0-9]+) +([a-z]+) \\\\(([^:]+)\\\\)', '*KEY*,permission,direction,port_name,packet_len,protocol,header_len,time_to_live,source_ip,destination_ip,source_port,destination_port,parameter,message')" } # 1 # Parse out some fields 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('()([^ ]+) +([^ ]+) +([a-z0-9:]+) +([0-9]+) +([a-z]+) +([0-9]+) +([0-9]+) +([0-9.]+) +([0-9.]+) +([0-9]+) +([0-9]+) +\\\\(([^:]+)\\\\)', '*KEY*,permission,direction,port_name,packet_len,protocol,header_len,time_to_live,source_ip,destination_ip,source_port,destination_port,message')" } # 2 # Accept the collected field 3 = { label = "3" comment = "" value = "accept_collected_entry_using_regexp('()', false)" } # 3 } # log.parsing_filters # Database fields database.fields = { permission = { label = "$lang_stats.field_labels.permission" log_field = "permission" type = "string" suppress_top = 0 suppress_bottom = 2 } # permission direction = { label = "$lang_stats.field_labels.direction" log_field = "direction" type = "string" suppress_top = 0 suppress_bottom = 2 } # direction port_name = { label = "$lang_stats.field_labels.port_name" log_field = "port_name" type = "string" suppress_top = 0 suppress_bottom = 2 } # port_name protocol = { label = "$lang_stats.field_labels.protocol" log_field = "protocol" type = "string" suppress_top = 0 suppress_bottom = 2 } # protocol source_ip = { label = "$lang_stats.field_labels.source_ip" log_field = "source_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_ip destination_ip = { label = "$lang_stats.field_labels.destination_ip" log_field = "destination_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_ip source_port = { label = "$lang_stats.field_labels.source_port" log_field = "source_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_port destination_port = { label = "$lang_stats.field_labels.destination_port" log_field = "destination_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_port parameter = { label = "$lang_stats.field_labels.parameter" log_field = "parameter" type = "string" suppress_top = 0 suppress_bottom = 2 } # parameter message = { label = "$lang_stats.field_labels.message" log_field = "message" type = "string" suppress_top = 0 suppress_bottom = 2 } # message } # 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 = "source_ip" type = "unique" display_format_type = "integer" } # visitors } # database.numerical_fields create_profile_wizard_options = { # How the reports should be grouped in the report menu report_groups = { date_time_group = "" permission = true direction = true port_name = true protocol = true source_ip = true destination_ip = true source_port = true destination_port = true parameter = true message = true } # report_groups } # create_profile_wizard_options not_supported = { sessions = true bandwidth = true pageviews = true } # not_supported } # watchguard