net_screen_traffic_log = { # The name of the log format log.format.format_label = "NetScreen Traffic 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 = "Traffic Log for Policy:" # Use 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 action = { label = "$lang_stats.field_labels.action" type = "flat" index = 0 subindex = 0 } # action 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 translated_ip = { label = "$lang_stats.field_labels.translated_ip" type = "flat" index = 0 subindex = 0 } # translated_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 translated_port = { label = "$lang_stats.field_labels.translated_port" type = "flat" index = 0 subindex = 0 } # translated_port destination_port = { label = "$lang_stats.field_labels.destination_port" type = "flat" index = 0 subindex = 0 } # destination_port duration = { label = "$lang_stats.field_labels.duration" type = "flat" index = 0 subindex = 0 } # duration bytes_sent = { label = "$lang_stats.field_labels.bytes_sent" type = "flat" } # bytes_sent bytes_received = { label = "$lang_stats.field_labels.bytes_received" type = "flat" } # bytes_received application = { label = "$lang_stats.field_labels.application" type = "flat" index = 0 subindex = 0 } # application } # log.fields # # Log Parsing Filters log.parsing_filters = { parse = { label = "parse" comment = "" value = " if (matches_regular_expression(current_log_line(), '^([0-9-]*) ([0-9:]*) ([^ ]*)[ ]*([^ ].* sec)(.*)$')) then ( set_collected_field('', 'date', $1); set_collected_field('', 'time', $2); set_collected_field('', 'action', $3); volatile.src_dest_duration = $4; volatile.remainder = $5; if (matches_regular_expression(volatile.src_dest_duration, '^([0-9.]*)->([0-9.]*)[ ]*([0-9]*) sec$')) then ( set_collected_field('', 'source_ip', $1); set_collected_field('', 'destination_ip', $2); set_collected_field('', 'duration', $3); ) else if (matches_regular_expression(volatile.src_dest_duration, '^([0-9.]*):([0-9]+)->([0-9.]*):([0-9]+)->([0-9.]+):([0-9]+)[ ]*([0-9]*) sec$')) then ( set_collected_field('', 'source_ip', $1); set_collected_field('', 'source_port', $2); set_collected_field('', 'translated_ip', $3); set_collected_field('', 'translated_port', $4); set_collected_field('', 'destination_ip', $5); set_collected_field('', 'destination_port', $6); set_collected_field('', 'duration', $7); ) else if (matches_regular_expression(volatile.src_dest_duration, '^([0-9.]*):([0-9]+)[ ]+([0-9.]*):([0-9]+)[ ]+([0-9.]+):([0-9]+)[ ]*([0-9]*) sec$')) then ( set_collected_field('', 'source_ip', $1); set_collected_field('', 'source_port', $2); set_collected_field('', 'translated_ip', $3); set_collected_field('', 'translated_port', $4); set_collected_field('', 'destination_ip', $5); set_collected_field('', 'destination_port', $6); set_collected_field('', 'duration', $7); ); # Handle lines where xlt src and xlt dest exist but are empty. If this runs up against future compatibility issues with # other situations where two values are present (but different values), note that xltsrc+xltdst appears as 45+ spaces. else if (matches_regular_expression(volatile.src_dest_duration, '^([0-9.]*):([0-9]+)[ ]+([0-9.]*):([0-9]+)[ ]+([0-9]*) sec$')) then ( set_collected_field('', 'source_ip', $1); set_collected_field('', 'source_port', $2); set_collected_field('', 'destination_ip', $3); set_collected_field('', 'destination_port', $4); set_collected_field('', 'duration', $5); ); if (matches_regular_expression(volatile.remainder, '^[ ]+([0-9]+)[ ]+([0-9]+) ([A-Z0-9 ]+)$')) then ( set_collected_field('', 'bytes_sent', $1); set_collected_field('', 'bytes_received', $2); set_collected_field('', 'application', $3); ) else if (matches_regular_expression(volatile.remainder, '^[ ]+([A-Z0-9 ]+)$')) then set_collected_field('', 'application', $1); accept_collected_entry('', false); ) " } # parse } # 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 action = { label = "$lang_stats.field_labels.action" log_field = "action" type = "string" suppress_top = 0 suppress_bottom = 2 } # action source_ip = { label = "$lang_stats.field_labels.source_ip" log_field = "source_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_ip location = { label = "$lang_stats.field_labels.location" log_field = "location" type = "string" suppress_top = 0 suppress_bottom = 3 } # location translated_ip = { label = "$lang_stats.field_labels.translated_ip" log_field = "translated_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # translated_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 translated_port = { label = "$lang_stats.field_labels.translated_port" log_field = "translated_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # translated_port destination_port = { label = "$lang_stats.field_labels.destination_port" log_field = "destination_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_port application = { label = "$lang_stats.field_labels.application" log_field = "application" type = "string" suppress_top = 0 suppress_bottom = 2 } # application } # 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 = 'accesses = 1;' } # mark_entry } # log.filters database.numerical_fields = { accesses = { label = "$lang_stats.field_labels.accesses" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # accesses visitors = { label = "$lang_stats.field_labels.visitors" default = false requires_log_field = true log_field = "source_ip" type = "unique" display_format_type = "integer" } # visitors duration = { label = $lang_stats.field_labels.duration default = false requires_log_field = true type = int display_format_type = duration_milliseconds } # duration bytes_sent = { label = "$lang_stats.field_labels.bytes_sent" default = false log_field = "bytes_sent" requires_log_field = true type = "float" display_format_type = "bandwidth" } bytes_received = { label = "$lang_stats.field_labels.bytes_received" default = false log_field = "bytes_received" requires_log_field = true type = "float" display_format_type = "bandwidth" } } # 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 = "" day_of_week = true hour_of_day = true action = true source_ip = true location = true translated_ip = true destination_ip = true source_port = true translated_port = true destination_port = true application = true } # report_groups } # create_profile_wizard_options not_supported = { sessions = true pageviews = true bandwidth = true } # not_supported } # net_screen_traffic_log