# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. cisco_soho77 = { plugin_version = "1.0.1" # Initial creation - 1.0 # 2010-10-26 - 1.0.1 - MSG - Edited info lines. info.1.manufacturer = "Cisco Systems" info.1.device = "SOHO77" info.1.version.1 = "" # Cisco SOHO77 # The name of the log format log.format.format_label = "Cisco SOHO77" log.miscellaneous.log_data_type = "network" log.miscellaneous.log_format_type = "network_device" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^[A-Z][a-z][a-z] [0-9 ][0-9] [0-9:]* [0-9.]* [0-9]*: \\*[A-Z][a-z][a-z] [0-9 ][0-9] [0-9:]* [^:]*: [^:]*: " # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # The format of dates and times in this log log.format.date_format = "mmm 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 protocol = { label = "$lang_stats.field_labels.protocol" type = "flat" index = 0 subindex = 0 } # protocol 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_type = { label = "$lang_stats.field_labels.source_type" type = "flat" index = 0 subindex = 0 } # source_type source_port = { label = "$lang_stats.field_labels.source_port" type = "flat" index = 0 subindex = 0 } # source_port destination_ip = { label = "$lang_stats.field_labels.destination_ip" type = "flat" index = 0 subindex = 0 } # destination_ip destination_type = { label = "$lang_stats.field_labels.destination_type" type = "flat" index = 0 subindex = 0 } # destination_type destination_port = { label = "$lang_stats.field_labels.destination_port" type = "flat" index = 0 subindex = 0 } # destination_port direction = { label = "$lang_stats.field_labels.direction" type = "flat" index = 0 subindex = 0 } # direction size = { label = "$lang_stats.field_labels.size" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # size } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse out the date & time from all lines 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('()([A-Za-z][A-Za-z][A-Za-z] [0-9 ][0-9]) ([0-9][0-9]:[0-9][0-9]:[0-9][0-9])', '*KEY*,date,time')" } # 1 # Parse out the protocol, source IP, source type,destination IP, destination type, gateway, size, direction from IP lines 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('() (IP): s=([0-9.]*) \\\\(([^)]*)\\\\), d=([0-9.]*) \\\\(([^)]*)\\\\), g=([0-9.]*), len ([0-9]*), ([a-z]*)$', '*KEY*,protocol,source_ip,source_type,destination_ip,destination_type,gateway,size,direction')" } # 2 # Parse out the protocol, source IP, source type,destination IP, destination type, gateway from IP lines 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('() (IP): s=([0-9.]*) \\\\(([^)]*)\\\\), d=([0-9.]*) \\\\(([^)]*)\\\\), g=([0-9.]*)', '*KEY*,protocol,source_ip,source_type,destination_ip,destination_type,gateway')" } # 3 # Parse out the protocol, source IP, source type,destination IP, destination type from IP lines 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('() (IP): s=([0-9.]*) \\\\(([^)]*)\\\\), d=([0-9.]*) *\\\\(([^)]*)\\\\)$', '*KEY*,protocol,source_ip,source_type,destination_ip,destination_type')" } # 4 # Parse out the protocol, source IP, source type,destination IP from IP lines 5 = { label = "5" comment = "" value = "collect_fields_using_regexp('() (IP): s=([0-9.]*) \\\\(([^)]*)\\\\), d=([0-9.]*)$', '*KEY*,protocol,source_ip,source_type,destination_ip,destination_type')" } # 5 # Parse out the protocol, direction, source IP,destination IP, size from UPD lines 6 = { label = "6" comment = "" value = "collect_fields_using_regexp('() (UDP): ([a-z]*) src=([0-9.]*)\\\\(([0-9]*)\\\\), dst=([0-9.]*)\\\\(([0-9]*)\\\\), length=([0-9]*)$', '*KEY*,protocol,direction,source_ip,source_port,destination_ip,destination_port,size')" } # 6 # Accept this entry 7 = { label = "7" comment = "" value = "accept_collected_entry_using_regexp('() (IP: s|UDP:)', false)" } # 7 } # log.parsing_filters # Log Filters log.filters = { 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 = { 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 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 = 2 } # source_ip source_type = { label = "$lang_stats.field_labels.source_type" log_field = "source_type" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_type source_port = { label = "$lang_stats.field_labels.source_port" log_field = "source_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # source_port destination_ip = { label = "$lang_stats.field_labels.destination_ip" log_field = "destination_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_ip destination_type = { label = "$lang_stats.field_labels.destination_type" log_field = "destination_type" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_type destination_port = { label = "$lang_stats.field_labels.destination_port" log_field = "destination_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_port direction = { label = "$lang_stats.field_labels.direction" log_field = "direction" type = "string" suppress_top = 0 suppress_bottom = 2 } # direction } # 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 size = { label = "$lang_stats.field_labels.size" default = false requires_log_field = true log_field = "size" type = "int" integer_bits = 64 display_format_type = "bandwidth" } # size } # 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 = "" protocol = true source_ip = true source_type = true source_port = true destination_ip = true destination_type = true destination_port = true direction = true } # report_groups } # create_profile_wizard_options not_supported = { visitors = true sessions = true pageviews = true } # not_supported } # cisco_soho77