# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. cisco_as5300 = { plugin_version = "1.0.1" info.1.manfacturer = "Cisco Systems" info.1.device = "AS5300 Access Server" info.1.version.1 = "" # 2007-09-11 - 1.0 - KBB - added version number and changed file name from beta_cisco_as5300.cfg # 2010-10-18 - 1.0.1 - MSG - Edited info lines. # The name of the log format log.format.format_label = "Cisco As5300 Log Format" log.miscellaneous.log_data_type = "syslog_required" 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 = "%MODEMCALLRECORD" # Log fields log.fields = { slot_port = "" slot_contr_chan = "" call_id = "" userid = "" ip = "" calling = "" called = "" std = "" prot = "" comp = "" init_rx_tx_b_rate = "" init_rx_b_rate = "" init_tx_b_rate = "" finl_rx_tx_b_rate = "" finl_rx_b_rate = "" finl_tx_b_rate = "" rbs = "" d_pad = "" retr = "" sq = "" snr = "" rx_tx_chars = "" rx_chars = "" tx_chars = "" bad = "" rx_tx_ec = "" rx_ec = "" tx_ec = "" bad = "" duration = "" finl_state = "" disc_radius_ = "" disc_modem_ = "" calls = "" } # log.fields log.parsing_filters.parse = ` if (matches_regular_expression(v.syslog_message, '%([A-Z0-9_-]+): ([^ ]*) (.*)$')) then ( set_collected_field('', 'event_code', $1); set_collected_field('', 'device', $2); collect_listed_fields('', $3, ', ', '=', 'time=duration'); if (matches_regular_expression(get_collected_field('', 'rx_tx_chars'), '^([0-9]+)/([0-9]+)$')) then ( set_collected_field('', 'rx_chars', $1); set_collected_field('', 'tx_chars', $2); ); if (matches_regular_expression(get_collected_field('', 'rx_tx_ec'), '^([0-9]+)/([0-9]+)$')) then ( set_collected_field('', 'rx_ec', $1); set_collected_field('', 'tx_ec', $2); ); if (matches_regular_expression(get_collected_field('', 'init_rx_tx_b_rate'), '^([0-9]+)/([0-9]+)$')) then ( set_collected_field('', 'init_rx_b_rate', $1); set_collected_field('', 'init_tx_b_rate', $2); ); if (matches_regular_expression(get_collected_field('', 'finl_rx_tx_b_rate'), '^([0-9]+)/([0-9]+)$')) then ( set_collected_field('', 'finl_rx_b_rate', $1); set_collected_field('', 'finl_tx_b_rate', $2); ); set_collected_field('', 'calls', 1); accept_collected_entry('', false); ); ` # Database fields database.fields = { slot_port = "" slot_contr_chan = "" call_id = "" userid = "" ip = "" calling = "" called = "" std = "" prot = "" comp = "" init_rx_b_rate = "" init_tx_b_rate = "" finl_rx_b_rate = "" finl_tx_b_rate = "" rbs = "" d_pad = "" retr = "" sq = "" snr = "" bad = "" rx_ec = "" tx_ec = "" bad = "" finl_state = "" disc_radius_ = "" disc_modem_ = "" } # database.fields database.numerical_fields = { calls = { default = true entries_field = true } # calls rx_chars = { default = true type = "float" display_format_type = "bandwidth" } tx_chars = { default = true type = "float" display_format_type = "bandwidth" } duration = { type = "float" display_format_type = "duration_compact" } # duration } # database.numerical_fields create_profile_wizard_options = { # How the reports should be grouped in the report menu report_groups = { date_time_group = "" } # report_groups } # create_profile_wizard_options } # cisco_as5300