# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. cisco_access_register = { plugin_version = "1.0.1" # Initial creation - 1.0 # 2010-10-18 - 1.0.1 - MSG - Edited info lines. info.1.manfacturer = "Cisco Systems" info.1.device = "Access Register" info.1.version.1 = "" # Cisco Access Register # sessions, hits, bandwidth, pageviews, and visitors. # The name of the log format log.format.format_label = "Cisco Access Register" 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 = "Vendor-Specific = [0-9a-e]+:" # The format of dates and times in this log log.format.date_format = "dd/mmm/yyyy" log.format.time_format = "hh:mm:ss" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # 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 user = { label = "$lang_stats.field_labels.user" type = "flat" index = 0 subindex = 0 } # user nas_ip = { label = "$lang_stats.field_labels.nas_ip" type = "flat" index = 0 subindex = 0 } # nas_ip nas_port = { label = "$lang_stats.field_labels.nas_port" type = "flat" index = 0 subindex = 0 } # nas_port nas_port_type = { label = "$lang_stats.field_labels.nas_port_type" type = "flat" index = 0 subindex = 0 } # nas_port_type service_type = { label = "$lang_stats.field_labels.service_type" type = "flat" index = 0 subindex = 0 } # service_type framed_protocol = { label = "$lang_stats.field_labels.framed_protocol" type = "flat" index = 0 subindex = 0 } # framed_protocol framed_ip = { label = "$lang_stats.field_labels.framed_ip" type = "host" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # framed_ip calling_station_id = { label = "$lang_stats.field_labels.calling_station_id" type = "flat" index = 0 subindex = 0 } # calling_station_id status_type = { label = "$lang_stats.field_labels.status_type" type = "flat" index = 0 subindex = 0 } # status_type authentication = { label = "$lang_stats.field_labels.authentication" type = "flat" index = 0 subindex = 0 } # authentication termination_cause = { label = "$lang_stats.field_labels.termination_cause" type = "flat" index = 0 subindex = 0 } # termination_cause } # log.fields # # Log Parsing Filters log.parsing_filters = { # Parse out the date/time lines 1 = { label = "1" comment = "" value = "collect_fields_using_regexp('()[A-Z][a-z][a-z], ([0-9]+ [A-Z][a-z][a-z] [0-9]+) ([0-9]+:[0-9]+:[0-9]+)$', '*KEY*,date,time')" } # 1 # Parse out the user lines 2 = { label = "2" comment = "" value = "collect_listed_fields_using_regexp('^() ([^ ]+ = .*)$', ' ', ' = ', 'user-name=user|nas-ip-address=nas_ip|nas-port=nas_port|service-type=service_type|framed-protocol=framed_protocol|framed-ip-address=framed_ip|calling-station-id=calling_station_id|acct-status-type=status_type|acct-authentic=authentication|acct-terminate-cause=termination_cause|nas-port-type=nas_port_type')" } # 2 # Accept this log entry when we get to the blank line after it 3 = { label = "3" comment = "" value = "accept_collected_entry_using_regexp('^()$', false)" } # 3 } # 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 user = { label = "$lang_stats.field_labels.user" log_field = "user" type = "string" suppress_top = 0 suppress_bottom = 2 } # user nas_ip = { label = "$lang_stats.field_labels.nas_ip" log_field = "nas_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # nas_ip nas_port = { label = "$lang_stats.field_labels.nas_port" log_field = "nas_port" type = "string" suppress_top = 0 suppress_bottom = 2 } # nas_port nas_port_type = { label = "$lang_stats.field_labels.nas_port_type" log_field = "nas_port_type" type = "string" suppress_top = 0 suppress_bottom = 2 } # nas_port_type service_type = { label = "$lang_stats.field_labels.service_type" log_field = "service_type" type = "string" suppress_top = 0 suppress_bottom = 2 } # service_type framed_protocol = { label = "$lang_stats.field_labels.framed_protocol" log_field = "framed_protocol" type = "string" suppress_top = 0 suppress_bottom = 2 } # framed_protocol framed_ip = { label = "$lang_stats.field_labels.framed_ip" log_field = "framed_ip" type = "string" suppress_top = 0 suppress_bottom = 2 } # framed_ip calling_station_id = { label = "$lang_stats.field_labels.calling_station_id" log_field = "calling_station_id" type = "string" suppress_top = 0 suppress_bottom = 2 } # calling_station_id status_type = { label = "$lang_stats.field_labels.status_type" log_field = "status_type" type = "string" suppress_top = 0 suppress_bottom = 2 } # status_type authentication = { label = "$lang_stats.field_labels.authentication" log_field = "authentication" type = "string" suppress_top = 0 suppress_bottom = 2 } # authentication termination_cause = { label = "$lang_stats.field_labels.termination_cause" log_field = "termination_cause" type = "string" suppress_top = 0 suppress_bottom = 2 } # termination_cause } # 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 host_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" user = true nas_ip = true nas_port = true nas_port_type = true service_type = true framed_protocol = true framed_ip = true calling_station_id = true status_type = true authentication = true termination_cause = true } # report_groups } # create_profile_wizard_options not_supported = { pageviews = true bandwidth = true sessions = true visitors = true } # not_supported } # cisco_access_register