net_screen_get_log_traffic = { # This handles log data generated with 'get log traffic' from a # Netscreen 208 is running ScreenOS 5.0.0r4.0. # It presumably handles other versions, but that's the version which created # the log data we used to create the plug-in. # The name of the log format log.format.format_label = "NetScreen Traffic Log Format (get log traffic)" 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 = "^Date *Time *Duration *Source IP *Port *Destination IP *Port *Service" # Use parsing filters log.format.parse_only_with_filters = "true" # The format of dates and times in this log log.format.date_format = "auto" log.format.time_format = "auto" # Log fields log.fields = { date = "" time = "" duration = "" source_ip.type = "host" source_port = "" destination_ip = "" destination_port = "" service = "" xlated_src_ip = "" xlated_src_port = "" xlated_dst_ip = "" xlated_dst_port = "" } # log.fields # Log Parsing Filters log.parsing_filters = { parse = { label = "parse" comment = "" value = " if (matches_regular_expression(current_log_line(), '^([0-9-]*) ([0-9:]*) +([0-9:]+) ([0-9.]+) *([0-9]+) ([0-9.]+) *([0-9]+) (.*)$')) then ( set_collected_field('', 'date', $1); set_collected_field('', 'time', $2); set_collected_field('', 'duration', $3); set_collected_field('', 'source_ip', $4); set_collected_field('', 'source_port', $5); set_collected_field('', 'destination_ip', $6); set_collected_field('', 'destination_port', $7); set_collected_field('', 'service', $8); ) else if (matches_regular_expression(current_log_line(), '^ *([0-9.]*) *([0-9]+) *([0-9.]*) *([0-9]+)$')) then ( set_collected_field('', 'xlated_src_ip', $1); set_collected_field('', 'xlated_src_port', $2); set_collected_field('', 'xlated_dst_ip', $1); set_collected_field('', 'xlated_dst_port', $2); accept_collected_entry('', false); ) " } # parse } # log.parsing_filters # Database fields database.fields = { date_time = "" day_of_week = "" hour_of_day = "" source_ip = "" source_port = "" destination_ip = "" destination_port = "" service = "" xlated_src_ip = "" xlated_src_port = "" xlated_dst_ip = "" xlated_dst_port = "" } # 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 unique_source_ips = { label = "$lang_stats.field_labels.unique_source_ips" default = false requires_log_field = true log_field = "source_ip" type = "unique" display_format_type = "integer" } # unique_source_ips duration = { label = $lang_stats.field_labels.duration default = false requires_log_field = true type = int display_format_type = duration_milliseconds } # duration } # 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 = "" source_group = { source_ip = true location = true source_port = true xlated_src_ip = true xlated_src_port = true } destination_group = { destination_ip = true destination_port = true xlated_dst_ip = true xlated_dst_port = true } service = "" } # report_groups } # create_profile_wizard_options } # net_screen_get_log_traffic