You can quickly view log files of service instances or hosts to locate faults.
The time information contained in a log file, if any, is automatically displayed, as shown in the red box in Figure 1. This time information is irrelevant to the time range that you set.
You can quickly view log files of service instances to locate faults.
Operation |
Setup |
Description |
---|---|---|
Entering a keyword |
None |
Enter a keyword in the search box in the upper right corner. Rules are as follows:
|
Setting a time range |
Date and time |
Click |
Time range |
Select a specific time range on the time axis to view logs. You can select only one range (5 minutes) each time. Scroll the mouse to increase or decrease the time granularity. |
|
Viewing log files |
Clear |
Click Clear to clear the logs displayed on the screen. This operation clears only the logs displayed on the screen but does not delete them. |
Viewing real-time logs |
The function of real-time monitoring is disabled by default. To enable it, click Enable Real-Time Viewing. After this function is enabled, the latest written logs can be viewed. The exception in the log records the exceptions that occur during code running. When using logs to locate faults, pay attention to the exception. For real-time log viewing, AOM automatically highlights exception keywords in logs, facilitating fault locating. Such keywords are case-sensitive. For example, exception and Exception are highlighted, but keywords such as EXCEPTION, exCeption, and EXception are not highlighted, as shown in the following figure. Figure 2 Viewing real-time logs
![]() NOTE:
After the function of viewing logs in real time is enabled, AOM automatically highlights exception keywords in logs. In that case, you cannot enter keywords to search for logs. |
|
Maximized display |
Click |
AOM enables you to quickly view log files of hosts, facilitating fault locating.
Operation |
Setup |
Description |
---|---|---|
Entering a keyword |
None |
Enter a keyword in the search box in the upper right corner. Rules are as follows:
|
Setting a time range |
Date and time |
Click |
Time range |
Select a specific time range on the time axis to view logs. You can select only one range (5 minutes) each time. Scroll the mouse to increase or decrease the time granularity. |
|
Viewing log files |
Clear |
Click Clear to clear the logs displayed on the screen. This operation clears only the logs displayed on the screen but does not delete them. |
Viewing real-time logs |
The function of real-time monitoring is disabled by default. To enable it, click Enable Real-Time Viewing. After this function is enabled, the latest written logs can be viewed. The exception in the log records the exceptions that occur during code running. When using logs to locate faults, pay attention to the exception. For real-time log viewing, AOM automatically highlights exception keywords in logs, facilitating fault locating. Such keywords are case-sensitive. For example, exception and Exception are highlighted, but keywords such as EXCEPTION, exCeption, and EXception are not highlighted, as shown in the following figure. Figure 4 Viewing real-time logs
![]() NOTE:
After the function of viewing logs in real time is enabled, AOM automatically highlights exception keywords in logs. In that case, you cannot enter keywords to search for logs. |
|
Maximized display |
Click |