# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. cisco_router_alt = { 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 = "Router (No Syslog)" info.1.version.1 = "" # Cisco Router (no syslog) # The name of the log format log.format.format_label = "Cisco Router Log Format (no syslog)" 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]+$" # 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 = "yyyy-mm-dd" log.format.time_format = "hh:mm:ss" # A log entry is called an event statistics.miscellaneous.entry_name = "events" # 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 logging_device = { label = "$lang_stats.field_labels.logging_device" type = "flat" index = 0 subindex = 0 } # logging_device process = { label = "$lang_stats.field_labels.process" type = "flat" index = 0 subindex = 0 } # process pid = { label = "$lang_stats.field_labels.pid" type = "flat" index = 0 subindex = 0 } # pid traceback = { label = "$lang_stats.field_labels.traceback" type = "flat" index = 0 subindex = 0 } # traceback devicename = { label = "$lang_stats.field_labels.devicename" type = "flat" index = 0 subindex = 0 } # devicename message = { label = "$lang_stats.field_labels.message" type = "flat" index = 0 subindex = 0 } # message protocol = { label = "$lang_stats.field_labels.protocol" type = "flat" index = 0 subindex = 0 } # protocol } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse out the date/time/process/pid lines 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]*: -Process= \\\\\"([^\"]+)\\\\\", [^=]+= [0-9]*, [^=]+= ([0-9]+)$', '*KEY*,date,time,logging_device,process,pid')" } # 1 # Parse other traceback lines 2 = { label = "2" comment = "" value = "collect_fields_using_regexp('^()([0-9]+-[0-9]+-[0-9]+) ([0-9]+:[0-9]+:[0-9]+) ([0-9.]+) <[0-9]*>[0-9]*: -Traceback= ([^$]+)$', '*KEY*,date,time,logging_device,traceback')" } # 2 # Parse out devicename/message lines 3 = { label = "3" comment = "" value = "collect_fields_using_regexp('^()([0-9]+-[0-9]+-[0-9]+) ([0-9]+:[0-9]+:[0-9]+) ([0-9.]+) <[0-9]*>[0-9]*: [A-Za-z0-9 :]+ %([^:]+): ([^$]+)$', '*KEY*,date,time,logging_device,devicename,message')" } # 3 # Parse devicename/protocol/message lines 4 = { label = "4" comment = "" value = "collect_fields_using_regexp('^()([0-9]+-[0-9]+-[0-9]+) ([0-9]+:[0-9]+:[0-9]+) ([0-9.]+) <[0-9]*>[0-9]* [A-Z][a-z][a-z] [0-9]+ [0-9:]+ %([^:]+):([^:]+): ([^$]+)$', '*KEY*,date,time,logging_device,devicename,protocol,message')" } # 4 # Accept this log entry 5 = { label = "5" comment = "" value = "accept_collected_entry_using_regexp('^()', 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 logging_device = { label = "$lang_stats.field_labels.logging_device" log_field = "logging_device" type = "string" suppress_top = 0 suppress_bottom = 2 } # logging_device process = { label = "$lang_stats.field_labels.process" log_field = "process" type = "string" suppress_top = 0 suppress_bottom = 2 } # process pid = { label = "$lang_stats.field_labels.pid" log_field = "pid" type = "string" suppress_top = 0 suppress_bottom = 2 } # pid traceback = { label = "$lang_stats.field_labels.traceback" log_field = "traceback" type = "string" suppress_top = 0 suppress_bottom = 2 } # traceback devicename = { label = "$lang_stats.field_labels.devicename" log_field = "devicename" type = "string" suppress_top = 0 suppress_bottom = 2 } # devicename message = { label = "$lang_stats.field_labels.message" log_field = "message" type = "string" suppress_top = 0 suppress_bottom = 2 } # message protocol = { label = "$lang_stats.field_labels.protocol" log_field = "protocol" type = "string" suppress_top = 0 suppress_bottom = 2 } # protocol } # database.fields database.numerical_fields = { events = { label = "$lang_stats.field_labels.events" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # events } # database.numerical_fields log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'events = 1;' } # mark_entry } # log.filters create_profile_wizard_options = { date_time_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" logging_device = true process = true pid = true traceback = true devicename = true message = true protocol = true } # report_groups } # create_profile_wizard_options not_supported = { visitors = true sessions = true pageviews = true bandwidth = true individualhosts = true } # not_supported } # cisco_router_alt