Configure USB logging
If you connect a USB storage device such as a flash drive to the switch, the switch logs messages to the device.
To configure USB logging:
- Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
The System Information page displays.
- Select Monitoring > Logs > USB Log Configuration.
The USB Log Configuration page displays.
- From the USB Log Mode menu, select how logging occurs:
- Overwrite on full: The switch logs messages to the USB device and overwrites old messages if the USB is full. This is the default setting.
-
Stop on Full: The switch logs messages to the USB device and stops logging if the USB device is full.
-
Disable: Prevent the switch from logging messages to the USB device.
- From the USB Log Mode menu, select the logging level for messages that must be logged.
Log messages with the selected severity level and all log messages of greater severity are logged. For example, if you select Warning, the logged messages include Warning, Error, Critical, Alert, and Emergency. The default severity level is Error (3).
The severity can be one of the following levels:
-
Emergency: Level 0, the highest warning level. If the device is down or not functioning properly, an emergency log is saved to the device.
-
Alert: Level 1, the second-highest warning level. An alert log is saved if a serious device malfunction occurs, such as all device features being down.
-
Critical: Level 2, the third-highest warning level. A critical log is saved if a critical device malfunction occurs, for example, two device ports are not functioning, while the rest of the device ports remain functional.
-
Error: Level 3, a device error occurred, such as a port being offline.
-
Warning: Level 4, the lowest level of a device warning.
-
Notice: Level 5, provides the network administrators with device information. This is the default setting.
-
Informational: Level 6, provides device information.
-
Debug: Level 7, provides detailed information about the log.
Note: A log records messages equal to or above a configured severity threshold. -
- Click the Apply button.
Your settings are saved.
The USB Log Operational Status field displays is logging is enabled (Active or Inactive).
- To save the settings to the running configuration, click the Save icon.