logging-filters

This command configures the Logging Filters table, which configures filtering rules of debug recording packets, Syslog messages, and Call Detail Records (CDR). The table allows you to enable and disable configured Log Filter rules. Enabling a rule activates the rule, whereby the device starts generating the debug recording packets, Syslog messages, or CDRs.

Syntax

(config-troubleshoot)# logging logging-filters <Index>
(logging-filters-<Index>)# 

Command

Description

Index

Defines the table row index.

filter-type {any|classification|fxs-fxo|ip-group| ip-to-ip-routing|ip-to-tel|ip-trace|sip-interface|srd|tel-to-ip|trunk-bch|trunk-group-id|trunk-id|user}

Type of logging filter.

log-dest {debug-rec|local-storage|syslog}

Log destination.

log-type {cdr-only|none|pstn-trace|signaling|signaling-media|signaling-media-pcm}

Log type.

mode {disable|enable}

Enables or disables the log rule.

value

Value of log filter (string).

Command Mode

Privileged User

Note

To configure the PSTN trace level per trunk, use the following command: configure voip > interface > trace-level
To configure PSTN traces for all trunks (that have been configured with a trace level), use the following command: debug debug-recording <Destination IP Address> pstn-trace
To send the PSTN trace to a Syslog server (instead of Wireshark), use the following command: configure troubleshoot > pstn-debug

Example

This example configures a Logging Filter rule (Index 0) that sends SIP signaling syslog messages of IP Group 1 to a Syslog server:

(config-troubleshoot)# logging logging-filters 0
(logging-filters-0)# filter-type ip-group
(logging-filters-0)# log-dest syslog
(logging-filters-0)# log-type signaling
(logging-filters-0)# mode enable
(logging-filters-0)# value 1