# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. cisco827_kiwi_full_dates_tabs = { plugin_version = "1.0.1" # Initial creation - 1.0 # 2010-10-18 - 1.0.1 - MSG - Edited info lines. info.1.manufacturer = "Cisco Systems" info.1.device = "827 Router (Kiwi, Full Dates, Tabs)" info.1.version.1 = "" # Cisco 827 (Kiwi, Full Dates, Tabs) # The name of the log format log.format.format_label = "Cisco 827 Log Format (Kiwi, Full Dates, Tabs)" 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 = "^[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] [^ ]* [0-9.]* [0-9]*: [^:]*: ISAKMP " # 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 = "mm/dd/yyyy" 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 source_host = { label = "$lang_stats.field_labels.source_host" type = "host" index = 0 subindex = 0 hierarchy_dividers = "." left_to_right = false leading_divider = "false" } # source_host destination_host = { label = "$lang_stats.field_labels.destination_host" type = "flat" index = 0 subindex = 0 } # destination_host local_port = { label = "$lang_stats.field_labels.local_port" type = "flat" index = 0 subindex = 0 } # local_port remote_port = { label = "$lang_stats.field_labels.remote_port" type = "flat" index = 0 subindex = 0 } # remote_port 827_ip = { label = "$lang_stats.field_labels.827_ip" type = "flat" index = 0 subindex = 0 } # 827_ip } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse out the date/time 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('^()([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]) [^ ]* ([^ ]*) ', '*KEY*,date,time,827_ip')" } # 1 # Parse a "received packet" line 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('()received packet from ([0-9.]*) ', '*KEY*,source_host')" } # 2 # Parse a "sending packet" line 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('()sending packet to ([0-9.]*) ', '*KEY*,destination_host')" } # 3 # Parse a "port/remote port" line 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('()local port ([0-9]*), remote port ([0-9]*)', '*KEY*,local_port,remote_port')" } # 4 # Accept this log entry if it's a "sending packet" line 5 = { label = "5" comment = "" value = "accept_collected_entry_using_regexp('()sending packet', false)" } # 5 } # log.parsing_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 source_host = { label = "$lang_stats.field_labels.source_host" log_field = "source_host" type = "string" suppress_top = 0 suppress_bottom = 9 } # source_host destination_host = { label = "$lang_stats.field_labels.destination_host" log_field = "destination_host" type = "string" suppress_top = 0 suppress_bottom = 2 } # destination_host local_port = { label = "$lang_stats.field_labels.local_port" log_field = "local_port" type = "string" suppress_top = 0 suppress_bottom = 9 } # local_port remote_port = { label = "$lang_stats.field_labels.remote_port" log_field = "remote_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # remote_port 827_ip = { label = "$lang_stats.field_labels.827_ip" log_field = "827_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # 827_ip } # 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 } # database.numerical_fields 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 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_host = true destination_host = true local_port = true remote_port = true 827_ip = true } # report_groups } # create_profile_wizard_options not_supported = { visitors = true sessions = true pageviews = true bandwidth = true } # not_supported } # cisco827_kiwi_full_dates_tabs