cisco_voice_router = { # Cisco Voice Router # The name of the log format log.format.format_label = "Cisco Voice Router" 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 = "(Cisco Voice Router|VOIP_CALL_HISTORY:)" # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Log fields log.fields = { calllegtype = { label = "$lang_stats.field_labels.calllegtype" type = "flat" index = 0 subindex = 0 } # calllegtype connectionid = { label = "$lang_stats.field_labels.connectionid" type = "flat" index = 0 subindex = 0 } # connectionid setuptime = { label = "$lang_stats.field_labels.setuptime" type = "flat" index = 0 subindex = 0 } # setuptime peeraddress = { label = "$lang_stats.field_labels.peeraddress" type = "flat" index = 0 subindex = 0 } # peeraddress peersubaddress = { label = "$lang_stats.field_labels.peersubaddress" type = "flat" index = 0 subindex = 0 } # peersubaddress disconnectcause = { label = "$lang_stats.field_labels.disconnectcause" type = "flat" index = 0 subindex = 0 } # disconnectcause disconnecttext = { label = "$lang_stats.field_labels.disconnecttext" type = "flat" index = 0 subindex = 0 } # disconnecttext connecttime = { label = "$lang_stats.field_labels.connecttime" type = "flat" index = 0 subindex = 0 } # connecttime disconnecttime = { label = "$lang_stats.field_labels.disconnecttime" type = "flat" index = 0 subindex = 0 } # disconnecttime callorigin = { label = "$lang_stats.field_labels.callorigin" type = "flat" index = 0 subindex = 0 } # callorigin chargedunits = { label = "$lang_stats.field_labels.chargedunits" type = "flat" index = 0 subindex = 0 } # chargedunits infotype = { label = "$lang_stats.field_labels.infotype" type = "flat" index = 0 subindex = 0 } # infotype transmitpackets = { label = "$lang_stats.field_labels.transmitpackets" type = "flat" index = 0 subindex = 0 } # transmitpackets transmitbytes = { label = "$lang_stats.field_labels.transmitbytes" type = "flat" index = 0 subindex = 0 } # transmitbytes receivebytes = { label = "$lang_stats.field_labels.receivebytes" type = "size" index = 0 subindex = 0 hierarchy_dividers = "" left_to_right = false leading_divider = "false" } # receivebytes } # log.fields # # Log Parsing Filters log.parsing_filters = { 1 = ` if (matches_regular_expression(v.syslog_message, '%[^:]*: (.*)$')) then ( v.pairs_string = $1; split(v.pairs_string, ', ', 'v.name_value_pairs'); node pair; foreach pair 'v.name_value_pairs' ( if (matches_regular_expression(node_value(pair), "^([^ ]+) (.*)$")) then ( set_collected_field('', lowercase($1), $2); ) ); accept_collected_entry('', false); ); ` } # log.parsing_filters # Database fields database.fields = { calllegtype = { label = "$lang_stats.field_labels.calllegtype" log_field = "calllegtype" type = "string" suppress_top = 0 suppress_bottom = 2 } # calllegtype peeraddress = { label = "$lang_stats.field_labels.peeraddress" log_field = "peeraddress" type = "string" suppress_top = 0 suppress_bottom = 2 } # peeraddress peersubaddress = { label = "$lang_stats.field_labels.peersubaddress" log_field = "peersubaddress" type = "string" suppress_top = 0 suppress_bottom = 2 } # peersubaddress disconnectcause = { label = "$lang_stats.field_labels.disconnectcause" log_field = "disconnectcause" type = "string" suppress_top = 0 suppress_bottom = 2 } # disconnectcause disconnecttext = { label = "$lang_stats.field_labels.disconnecttext" log_field = "disconnecttext" type = "string" suppress_top = 0 suppress_bottom = 2 } # disconnecttext callorigin = { label = "$lang_stats.field_labels.callorigin" log_field = "callorigin" type = "string" suppress_top = 0 suppress_bottom = 2 } # callorigin infotype = { label = "$lang_stats.field_labels.infotype" log_field = "infotype" type = "string" suppress_top = 0 suppress_bottom = 2 } # infotype } # 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 receivebytes = { label = "$lang_stats.field_labels.receivebytes" default = false requires_log_field = true log_field = "receivebytes" type = "float" display_format_type = "bandwidth" } # receivebytes } # 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 = { # How the reports should be grouped in the report menu report_groups = { date_time_group = "" calllegtype = true peeraddress = true peersubaddress = true disconnectcause = true disconnecttext = true callorigin = true infotype = true } # report_groups } # create_profile_wizard_options not_supported = { individualhosts = true sessions = true visitors = true pageviews = true } # not_supported } # cisco_voice_router