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 switch. For more information, see Log in to the main UI with a known IP address.
The System Information page displays.
- Select Monitoring > Logs > Memory Log.
The Memory Log page displays.
- Select one of the following Admin Status radio buttons:
-
Enable: Enable the switch to log default messages. This is the default setting.
-
Disable: Prevent the switch from logging default messages.
-
- 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. - In the Threshold field, enter the percentage of log space that, if exceeded, causes logging to stop.
Enter a percentage from 1 to 100. The default is 80.
The threshold applies only if the selection from the Behavior menu is Stop-on-Full. By default, the default the selection from the Behavior menu is Wrap and the threshold does not apply.
- Click the Apply button.
Your settings are saved.
The Memory Log table displays on the Memory Log page.
The Total number of Messages field displays the number of messages the system logged in memory. By default, up to 160 (80 percent of the maximum of 200) of the most recent 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> Jun 21 2024 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 June 21, 2024 at 00:00:18 a.m. by component AAA. The message indicates that the administrator successfully logged on 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.
- To save the settings to the running configuration, click the Save icon.