# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. win_route_connection = { # The name of the log format log.format.format_label = "WinRoute Connection 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 = `^\\[([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]:[0-9][0-9])\\] \\[[^]]+\\] [^ ]+ \\[[^]]+\\] [^[]+ \\[[^]]+\\]` # The format of dates and times in this log log.format.date_format = "dd/mmm/yyyy" log.format.time_format = "hh:mm:ss" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Log fields log.fields = { date = "" time = "" id = "" rule = "" service = "" connection = "" duration = "" bytes_sent = "" bytes_received = "" total_bytes = "" packets_sent = "" packets_received = "" transmitpackets = "" } # log.fields # 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 id = "" rule = "" service = "" connection = "" } # database.fields database.numerical_fields = { events = { default = true requires_log_field = false entries_field = true } # events bytes_sent = { type = "float" display_format_type = "bandwidth" } # bytes_sent bytes_received = { type = "float" display_format_type = "bandwidth" } # bytes_received total_bytes = { type = "float" display_format_type = "bandwidth" } # total_bytes packets_sent = "" packets_received = "" transmitpackets = "" duration = { type = "float" display_format_type = "duration_compact" } # duration } # database.numerical_fields log.parsing_filters.parse = ` if (matches_regular_expression(current_log_line(), '^\\[([^ ]+) ([^]]+)\\] [^ ]+ ([^[]+) [^ ]+ ([^[]+) [^ ]+ ([^[]+) [^ ]+ ([^[]+) [^ ]+ ([0-9]+) [^ ]+ [^ ]+ ([0-9]+)/([0-9]+)/([0-9]+) [^ ]+ ([0-9]+)/([0-9]+)/([0-9]+)$')) then ( v.duration = $7; set_collected_field('', 'date', $1); set_collected_field('', 'time', $2); set_collected_field('', 'id', $3); set_collected_field('', 'rule', $4); set_collected_field('', 'service', $5); set_collected_field('', 'connection', $6); set_collected_field('', 'duration', v.duration); set_collected_field('', 'bytes_sent', $8); set_collected_field('', 'bytes_received', $9); set_collected_field('', 'total_bytes', $10); set_collected_field('', 'packets_sent', $11); set_collected_field('', 'packets_received', $12); set_collected_field('', 'transmitpackets', $13); set_collected_field('', 'events', 1); accept_collected_entry('', false); ); # if currnet log line ` log.filters = { } # log.filters create_profile_wizard_options = { # How the reports should be grouped in the report menu report_groups = { } # report_groups } # create_profile_wizard_options } # win_route_connection