# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. network_syslog = { # Network Syslog Format # The name of the log format log.format.format_label = "Network Syslog Format" log.miscellaneous.log_data_type = "firewall" log.miscellaneous.log_format_type = "syslog_server" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [^ ]+ [0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+ [0-9]+: \\.*[A-Z][a-z][a-z] [0-9 ][0-9] [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" # The format of dates and times in this log log.format.date_format = "yyyy-mm-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 type = { label = "$lang_stats.field_labels.type" type = "flat" index = 0 subindex = 0 } # type server_ip = { label = "$lang_stats.field_labels.server_ip" type = "flat" index = 0 subindex = 0 } # server_ip service_name = { label = "$lang_stats.field_labels.service_name" type = "flat" index = 0 subindex = 0 } # service_name rule = { label = "$lang_stats.field_labels.rule" type = "flat" index = 0 subindex = 0 } # rule result = { label = "$lang_stats.field_labels.result" type = "flat" index = 0 subindex = 0 } # result protocol = { label = "$lang_stats.field_labels.protocol" type = "flat" index = 0 subindex = 0 } # protocol source_ip = { label = "$lang_stats.field_labels.source_ip" type = "host" index = 0 subindex = 0 hierarchy_dividers = "." left_to_right = false leading_divider = "false" } # source_ip source_port = { label = "$lang_stats.field_labels.source_port" type = "flat" index = 0 subindex = 0 } # source_port destination_ip = { label = "$lang_stats.field_labels.destination_ip" type = "flat" index = 0 subindex = 0 } # destination_ip destination_port = { label = "$lang_stats.field_labels.destination_port" type = "flat" index = 0 subindex = 0 } # destination_port foundry_name = { label = "$lang_stats.field_labels.foundry_name" type = "flat" index = 0 subindex = 0 } # foundry_name foundry_ip = { label = "$lang_stats.field_labels.foundry_ip" type = "flat" index = 0 subindex = 0 } # foundry_ip web_server_name = { label = "$lang_stats.field_labels.web_server_name" type = "flat" index = 0 subindex = 0 } # web_server_name user = { label = "$lang_stats.field_labels.user" type = "flat" index = 0 subindex = 0 } # user status = { label = "$lang_stats.field_labels.status" type = "flat" index = 0 subindex = 0 } # status } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse icmp lines 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('^()([0-9-]*) ([0-9:]+) ([^ ]+) ([0-9.]+) [0-9]+: \\\\.*[A-Za-z]* [0-9 ]+ [0-9:]+ ([^:]+): ([^ ]+ [0-9]+) ([^ ]+) ([^ ]+) ([0-9.]+) -> ([0-9.]+)[, ]', '*KEY*,date,time,type,server_ip,service_name,rule,result,protocol,source_ip,destination_ip')" } # 1 # Parse non-icmp lines 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('^()([0-9-]*) ([0-9:]+) ([^ ]+) ([0-9.]+) [0-9]+: \\\\.*[A-Za-z]* [0-9 ]+ [0-9:]+ ([^:]+): ([^ ]+ [0-9]+) ([^ ]+) ([^ ]+) ([0-9.]+)\\\\(([^)]+)\\\\) -> ([0-9.]+)\\\\(([^)]+)\\\\)', '*KEY*,date,time,type,server_ip,service_name,rule,result,protocol,source_ip,source_port,destination_ip,destination_port')" } # 2 # Parse foundry lines 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('^()([0-9-]*) ([0-9:]+) ([^ ]+) ([0-9.]+) ([A-Za-z0-9]*), [^ ]* server ([0-9.]*) (WWW[0-9]* port [0-9]*) is ([a-z]*) $', '*KEY*,date,time,type,server_ip,foundry_name,foundry_ip,web_server_name,status')" } # 3 # Parse foundry login/logout lines 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('^()([0-9-]*) ([0-9:]+) ([^ ]+) ([0-9.]+) ([A-Za-z0-9]*), ([^ ]*) ([A-Za-z ]*) $', '*KEY*,date,time,type,server_ip,foundry_name,user,status')" } # 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 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 type = { label = "$lang_stats.field_labels.type" log_field = "type" type = "string" suppress_top = 0 suppress_bottom = 2 } # type server_ip = { label = "$lang_stats.field_labels.server_ip" log_field = "server_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # server_ip service_name = { label = "$lang_stats.field_labels.service_name" log_field = "service_name" type = "string" suppress_top = 0 suppress_bottom = 2 } # service_name rule = { label = "$lang_stats.field_labels.rule" log_field = "rule" type = "string" suppress_top = 0 suppress_bottom = 2 } # rule result = { label = "$lang_stats.field_labels.result" log_field = "result" type = "string" suppress_top = 0 suppress_bottom = 2 } # result 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 foundry_name = { label = "$lang_stats.field_labels.foundry_name" log_field = "foundry_name" type = "string" suppress_top = 0 suppress_bottom = 2 } # foundry_name foundry_ip = { label = "$lang_stats.field_labels.foundry_ip" log_field = "foundry_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # foundry_ip web_server_name = { label = "$lang_stats.field_labels.web_server_name" log_field = "web_server_name" type = "string" suppress_top = 0 suppress_bottom = 2 } # web_server_name user = { label = "$lang_stats.field_labels.user" log_field = "user" type = "string" suppress_top = 0 suppress_bottom = 2 } # user status = { label = "$lang_stats.field_labels.status" log_field = "status" type = "string" suppress_top = 0 suppress_bottom = 2 } # status } # 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 = { date_time_tracking = true host_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" type = true server_ip = true service_name = true rule = true result = true protocol = true source_ip = true destination_ip = true source_port = true destination_port = true foundry_name = true foundry_ip = true web_server_name = true user = true status = true } # report_groups } # create_profile_wizard_options not_supported = { sessions = true pageviews = true bandwidth = true } # not_supported } # network_syslog