Manage and display the memory log
The memory log stores messages in memory based upon the settings for message component and severity. You can set the administrative status and behavior of logs in the system buffer. These log messages are cleared when the switch reboots.
To manage and display the memory log:
- Open a web browser and log in to the device UI using your login details and device admin password.
The Dashboard page displays.
- Select Monitoring > Logs > Memory Log.
The Memory Log page displays.
The following steps refer to the Memory Log Configuration section.
- Click the Memory Logging toggle to enable or disable memory logging:
- The toggle is gray and positioned to the left: Memory logging is disabled, which prevents the switch from logging default messages.
- The toggle is purple and positioned to the right: Memory logging is enabled, which enables the switch to log default messages. This is the default setting.
- From the Behavior menu, specify the behavior of the log when it is full:
-
Wrap: When the buffer is full, the oldest log messages are deleted as the system logs new messages.
-
Stop on Full: When the buffer is full, the system stops logging new messages and preserves all existing log messages.
-
- From the Severity Filter 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 Informational (6).
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.
- Informational: Level 6, provides device information. This is the default setting.
- 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 Memory Log table displays in the Memory Log section.
The Total Number of Messages field displays the number of messages the system logged in memory. Up to 200 entries can be displayed on the page.
The rest of the page displays the Memory Log messages. The format of the log message is the same for messages that are displayed for the message log, persistent log, or console log. Messages logged to a collector or relay through syslog support the same format as well.
The following example shows the standard format for a log message:
<189> Jan 05 2023 00:00:18: AAA-5-CONNECT: New http connection for user admin, source 192.168.1.111 ACCEPTEDThe message was generated as severity 189 (Notice, level 5) on January 5, 2023 at 00:00:18 a.m. by component AAA. The message indicates that the administrator successfully logged in to the HTTP management interface from a host with IP address 192.168.1.111.
The severity number in the message is generated by a combination of the facility and the severity. In the previous example, the default facility of 23 is multiplied by 8 and the severity (5) is added: (23 * 8) + 5 = 189
- To refresh the page, click the Refresh button.
- To clear the log, click the Clear button.