# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. iosdebug_ippacket_detailed = { plugin_version = "1.0.1" # Initial creation - 1.0 # 2011-01-07 - 1.0.1 - MSG - Edited info lines. info.1.manufacturer = "Cisco" info.1.device = "IOS Debug IP Packet Detailed (Using Syslog Server)" info.1.version.1 = "" # IOS (Debug IP Packet Detailed) # The name of the log format log.format.format_label = "IOS Debug IP Packet Detailed (Using Syslog Server)" log.miscellaneous.log_data_type = "syslog_required" log.miscellaneous.log_format_type = "other" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = " IP: s=[0-9.]* \\([^)]*\\), d=[0-9.]* \\([^)]*\\), g=[0-9.]*, len [0-9]*, [a-z]*$" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Log fields log.fields = { 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_interface = { label = "$lang_stats.field_labels.source_interface" type = "flat" index = 0 subindex = 0 } # source_interface destination_ip = { label = "$lang_stats.field_labels.destination_ip" type = "flat" index = 0 subindex = 0 } # destination_ip destination_interface = { label = "$lang_stats.field_labels.destination_interface" type = "flat" index = 0 subindex = 0 } # destination_interface source_port = { label = "$lang_stats.field_labels.source_port" type = "flat" index = 0 subindex = 0 } # source_port destination_port = { label = "$lang_stats.field_labels.destination_port" type = "flat" index = 0 subindex = 0 } # destination_port gateway = { label = "$lang_stats.field_labels.gateway" type = "flat" index = 0 subindex = 0 } # gateway protocol = { label = "$lang_stats.field_labels.protocol" type = "flat" index = 0 subindex = 0 } # protocol flags = { label = "$lang_stats.field_labels.flags" type = "flat" index = 0 subindex = 0 } # flags len = { label = "$lang_stats.field_labels.len" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # len win = { label = "$lang_stats.field_labels.win" type = "flat" index = 0 subindex = 0 } # win flags = { label = "$lang_stats.field_labels.flags" type = "flat" index = 0 subindex = 0 } # flags type = { label = "$lang_stats.field_labels.type" type = "flat" index = 0 subindex = 0 } # type code = { label = "$lang_stats.field_labels.code" type = "flat" index = 0 subindex = 0 } # code } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse out line 1 of a 2 line log entry 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('()IP: s=([0-9.]*) \\\\(([^)]*)\\\\), d=([0-9.]*) \\\\(([^)]*)\\\\), g=([0-9.]*), len ([0-9]*), [a-z]*$', '*KEY*,source_ip,source_interface,destination_ip,destination_interface,gateway,len')" } # 1 # Parse out line 2--TCP lines 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('()(TCP) src=([0-9]*), dst=([0-9]*).*win=([0-9]*) (.*)$', '*KEY*,protocol,source_port,destination_port,win,flags')" } # 2 # Parse out line 2--UDP lines 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('()(UDP) src=([0-9]*), dst=([0-9]*)$', '*KEY*,protocol,source_port,destination_port')" } # 3 # Parse out line 2--ICMP lines 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('()(ICMP) type=([0-9]*), code=([0-9]*)$', '*KEY*,protocol,type,code')" } # 4 # Accept this log entry 5 = { label = "5" comment = "" value = "accept_collected_entry_using_regexp('(): ', false)" } # 5 } # log.parsing_filters # Log Filters log.filters = { # This filter copies the source IP field to the "visitor id" 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 fields database.fields = { 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 = 9 } # 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_interface = { label = "$lang_stats.field_labels.source_interface" log_field = "source_interface" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_interface destination_interface = { label = "$lang_stats.field_labels.destination_interface" log_field = "destination_interface" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_interface 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 gateway = { label = "$lang_stats.field_labels.gateway" log_field = "gateway" type = "string" suppress_top = 0 suppress_bottom = 2 } # gateway win = { label = "$lang_stats.field_labels.win" log_field = "win" type = "string" suppress_top = 0 suppress_bottom = 2 } # win flags = { label = "$lang_stats.field_labels.flags" log_field = "flags" type = "string" suppress_top = 0 suppress_bottom = 2 } # flags type = { label = "$lang_stats.field_labels.type" log_field = "type" type = "string" suppress_top = 0 suppress_bottom = 2 } # type code = { label = "$lang_stats.field_labels.code" log_field = "code" type = "string" suppress_top = 0 suppress_bottom = 2 } # code } # database.fields 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 len = { label = "$lang_stats.field_labels.len" default = false requires_log_field = true log_field = "len" type = "int" integer_bits = 64 display_format_type = "bandwidth" } # len } # database.numerical_fields create_profile_wizard_options = { host_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" protocol = true source_ip = true destination_ip = true source_interface = true destination_interface = true source_port = true destination_port = true gateway = true win = true flags = true type = true code = true } # report_groups } # create_profile_wizard_options not_supported = { sessions = true pageviews = true } # not_supported } # iosdebug_ippacket_detailed