Updated on 2024-06-28 GMT+08:00

Checking Log Files

You can quickly check log files of component instances or hosts to locate faults.

Procedure

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane, choose Log Analysis > Log Files.

    In regions where new log analysis functions are supported, you can access the Log Files page through the entry described in Table 2.

  3. On the page that is displayed, click the Component or Host tab and click a name. Information such as the log file name and latest written time is displayed on the right of the page.
  4. Click View in the Operation column of the desired instance. Table 1 shows how to view log file details. Figure 1 shows log file details.

    Table 1 Operations

    Operation

    Settings

    Description

    Setting a time range

    Date

    Click to select a date.

    Viewing log files

    Clear

    Click Clear to clear the logs displayed on the screen. Logs displayed on the screen will be cleared, but will not be deleted.

    Viewing logs in real time

    Real-time viewing is disabled by default. You can click Enable Real-Time Viewing as required. After this function is enabled, the latest written logs can be viewed. Logs can be searched only when real-time viewing is disabled.

    For real-time log viewing, AOM automatically highlights exception keywords in logs, facilitating fault locating. Such keywords are case-sensitive. For example, when you enter format to search, format in logs will be highlighted, but Format and FORMAT will not.

    Figure 1 Log file details

  5. (Optional) Click Configure Dumps in the Operation column of the target instance to dump its logs to the same log file in the OBS bucket at a time. For details, see Adding One-Off Dumps.