---
title: Log Threshold Configuration
slug: enterprise-v5p2/log-threshold-configuration
description: device management
createdAt: 2025-11-14T03:58:41.563Z
---

### <font color="#1d50a2">show interface log-threshold</font>

<u>**\[**</u>**Command]**
**show interface log-threshold**

**\[Purpose]**
Display interface bandwidth utilization alarms.

**\[View]**
System view

**\[Notes]**
If no specific alarm configuration is applied to a particular interface, this command will only display the default values and will not provide information for each individual interface.

**\[Use Cases]**

```plaintext
sonic# show interface log-threshold
Interface Default Bandwidth utilization rx/tx alert_threshold: 80%, resume_threshold: 75%
customer defined
Interface   rx_alert_threshold   rx_resume_threshold   tx_alert_threshold   tx_resume_threshold
----------- -------------------- --------------------- -------------------- ---------------------
Ethernet2           70                    60                  70                   60
```

### <font color="#1d50a2">log-threshold \{tx|rx|both\}</font>

**\[Command]**
**log-threshold \{tx|rx|both}** *alert\_threshold resume\_threshold*

**\[Purpose]**
Configure the bandwidth utilization log threshold value for the interface.

**\[View]**
System view

**\[Parameter]**

| **Parameter**       | **Description**                                    |
| ------------------- | -------------------------------------------------- |
| **tx**              | Interface outgoing direction                       |
| **rx**              | Interface incoming direction                       |
| **both**            | Configure both RX and TX simultaneously            |
| *alert\_threshold*  | Alarm threshold, range 50-100, default value 80    |
| *resume\_threshold* | Recovery threshold, range 50-100, default value 75 |

**\[View]**
interface view

**\[Usage Scenario]**
Users can use this command to customize the alarm thresholds and recovery thresholds for the outgoing and incoming directions of a specific interface. When the alarm threshold is exceeded, Syslog begins to generate alarm logs; when it falls below the recovery threshold, the alarm is canceled.

**\[Use Cases]**

```plaintext
sonic(config)# interface ethernet 2
sonic(config-if-2)# log-threshold both 70 60
```

