# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. ascenlink = { plugin_version = "1.0.1" info.1.manufacturer = "Xtera" info.1.device = "AscenLink" info.1.version.1 = "200, 7xx, 5xxx" # 2007-09-11 - 1.0 - KBB - added version number and changed file name from beta_ascenlink.cfg # 2010-10-12 - 1.0.1 - MSG - Edited info lines. # The name of the log format log.format.format_label = "AscenLink 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 = "AscenLink: [A-Z]+ [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] " # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Log fields log.fields = { action = "" proto = "" src.type = "host" src_port = "" dst = "" dst_port = "" totlen = "" inpkts = "" inbytes = "" outpkts = "" outbytes = "" duration = "" link = "" direction = "" inclass = "" outclass = "" } # log.fields # Log Parsing Filters log.parsing_filters.parse = ` if (matches_regular_expression(v.syslog_message, '^AscenLink: [A-Z]+ ([0-9-]+) ([0-9:]+) (.*)')) then ( set_collected_field('', 'date', $1); set_collected_field('', 'time', $2); v.message = $3; if (matches_regular_expression(v.message, "^src=([0-9.]+) dst=([0-9.]+) ([a-z]+) (.*)$")) then ( set_collected_field('', 'src', $1); set_collected_field('', 'dst', $2); set_collected_field('', 'proto', $3); v.message = $4; if (matches_regular_expression(v.message, "^sport=([0-9]+) dport=([0-9]+) (.*)$")) then ( set_collected_field('', 'src_port', $1); set_collected_field('', 'dst_port', $2); v.message = $3; ); if (matches_regular_expression(v.message, "^inpkts=([0-9]+) inbytes=([0-9]+) outpkts=([0-9]+) outbytes=([0-9]+) duration=([^ ]+) link=([^ ]+) ([^ ]+) ([^ ]+) inclass=..([^']+)'' outclass=..([^']+)''")) then ( set_collected_field('', 'inpkts', $1); set_collected_field('', 'inbytes', $2); set_collected_field('', 'outpkts', $3); set_collected_field('', 'outbytes', $4); set_collected_field('', 'duration', $5); set_collected_field('', 'link', $6); set_collected_field('', 'direction', $7); set_collected_field('', 'inclass', $9); set_collected_field('', 'outclass', $10); accept_collected_entry('', false); ); ); else if (matches_regular_expression(v.message, "^ACTION=([^ ]+) PROTO=([^ ]+) SRC=([0-9.]+):([0-9]+) DST=([0-9.]+):([0-9]+) TOTLEN=([0-9]+)")) then ( set_collected_field('', 'action', $1); set_collected_field('', 'proto', $2); set_collected_field('', 'src', $3); set_collected_field('', 'src_port', $4); set_collected_field('', 'dst', $5); set_collected_field('', 'dst_port', $6); set_collected_field('', 'totlen', $7); accept_collected_entry('', false); ); ); ` # Database fields database.fields = { action = "" proto = "" src = "" location = "" src_port = "" dst = "" dst_port = "" totlen = "" link = "" direction = "" inclass = "" outclass = "" } # 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 = "src" type = "unique" display_format_type = "integer" } # unique_source_ips inpkts = { label = "$lang_stats.field_labels.inpkts" default = true requires_log_field = true type = "int" display_format_type = "integer" } # inpkts outpkts = { label = "$lang_stats.field_labels.outpkts" default = true requires_log_field = true type = "int" display_format_type = "integer" } # outpkts inbytes = { label = "$lang_stats.field_labels.inbytes" default = false requires_log_field = true log_field = "inbytes" type = "float" display_format_type = "bandwidth" } # inbytes outbytes = { label = "$lang_stats.field_labels.outbytes" default = false requires_log_field = true log_field = "outbytes" type = "float" display_format_type = "bandwidth" } # outbytes totlen = { label = "$lang_stats.field_labels.totlen" default = false requires_log_field = true log_field = "totlen" type = "float" display_format_type = "bandwidth" } # totlen duration = { label = $lang_stats.field_labels.duration default = false requires_log_field = true type = int display_format_type = duration_compact } # 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 = { action = true proto = true src = true location = true src_port = true dst = true dst_port = true totlen = true link = true direction = true inclass = true outclass = true } # report_groups } # create_profile_wizard_options } # ascenlink