< Home

(Optional) Configuring Log Filtering

Context

If some logs are unnecessary, configure the device not to output these logs. When the filtering function is enabled, the information center does not send the specified logs that satisfy the filtering condition to any channel. As a result, all output directions cannot receive the specified logs.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run info-center filter-id { id | bymodule-alias modname alias } &<1-50> or info-center filter-id { id | bymodule-alias modname alias } [ bytime interval | bynumber number ]

    The filtering function is configured for specified logs.

    • Currently, the device can filter logs or modules with a maximum of 50 log IDs or modules. If there are more than 50 log IDs or modules, the system displays a message indicating that the filtering table is full. To configure the filtering function, run the undo info-center filter-id { id | bymodule-alias modname alias } &<1-50>, undo info-center filter-id { id | bymodule-alias modname alias } [ bytime interval | bynumber number ], or undo info-center filter-id all command to delete original IDs or modules, and reconfigure the log ID or module.

    • To add multiple IDs or modules at a time, use a space to separate IDs or modules. The system displays a message to report the result of adding each ID or module.

    • You cannot add the same ID or module repeatedly.

    • When you add an unregistered or nonexistent log ID or alias name, the system displays a message indicating that the system fails to filter the log with the specified log ID or alias name.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >