Configuring VM Log Collection Paths

AOM can collect and display VM logs. VM refers to an Elastic Cloud Server (ECS) running Linux. Before collecting logs, configure a log collection path according to the following procedure.

Prerequisites

You have installed the ICAgent on a VM according to Installing the ICAgent.

Precautions

Procedure

  1. Log in to the management console.
  2. Under Application, click Application Operations Management.
  3. In the navigation pane, choose Log Management > Path Configuration.
  4. In the VM list, click Configure in the Operation column to configure one or more log collection paths for a VM.

    You can use the paths automatically identified by the ICAgent or manually configure paths.
    • Using the paths automatically identified by the ICAgent

      The ICAgent automatically scans the log files of your VM, and displays all the log files that have file handles and are suffixed with .log, .trace, or .out on the page.

      You can click in the Operation column to add a path automatically identified by the ICAgent to the log collection path list. To configure multiple paths, repeat this operation.

      Figure 1 Using the paths automatically identified by the ICAgent
    • Manually configuring log collection paths

      If the paths automatically identified by the ICAgent cannot meet your requirements, enter a log directory or file (for example, /opt/yilu/work/xig/debug_cpu.log) in the Log Collection Path text box, and then click to add the path to the log collection path list. To configure multiple paths, repeat this operation.

      Figure 2 Manually configuring log collection paths

  5. Click OK.

    After a log collection path is configured, the ICAgent collects log files from the configured path. The collection takes about 1 minute. After log files are collected, choose Log Management > Log Files in the navigation pane and then click the Host tab to view the collected log files.