All Products
Search
Document Center

Install log collectors

Last Updated: Mar 19, 2019

Install the log collector before using the EDAS application monitoring function.

EDAS provides a suite of functions, where a lot of data is pulled from application instances. This requires that the server can be connected to the relevant instances.

Alibaba Cloud’s network environment consists of classic networks and VPCs.

  • In a classic network, if the firewall and security groups have no port (8182) restrictions, the server can be connected to instances directly.
  • In a VPC, instances are intrinsically isolated from servers. EDAS provides a special utility for VPCs: the log collector.

The log collector is divided into two types, Server and Client.SProxy is the log collector client installed on the instance, as shown in the following figure:

Log collector sample

Some instances in EDAS now support the automatic installation of a log collector, while others only support its manual installation.

Under any of the following conditions, an ECS instance does not support the automatic installation of a log collector:

  • The ECS instance was created before December 1, 2017.
  • A classic network ECS instance is imported into a classic network cluster.
  • The ECS instance is not running (it is stopped, starting, or stopping).
  • The ECS instance is a Windows instance or does not support simple shell commands.
  • The ECS instance is not imported from an ECS cluster.

Install the log collector automatically

  1. Log on to the EDAS console.

  2. In the left-side navigation pane, choose Resource Management > VPC.

  3. In the VPC ID list, locate the row that contains the VPC where you want to install the log collector and click Install Log Collector in the Actions column.

  4. In the displayed Install Log Collector dialog box, locate the row that contains the target ECS instance, if it supports automatic log collector installation, click Automatic Installation in the Actions column .

  5. After a short time, the Installation complete status is displayed.

    Note: If the installation fails, you can manually install the log collector.If both automatic and manual installation fail, submit a ticket.

Manually install the log collector

  1. Locate the row that contains the target ECS instance according to steps 1 to 3 in Automatically install the log collector.

  2. If the ECS instance does not support the automatic installation of the log collector, click Manual Installation in the Actions column.

  3. On the Install Log Collector page, click Copy to paste the script for the ECS instance.

  4. Log on to the ECS instance as the root user. Paste the copied script for installation and press Enter.

  5. After the installation is complete, manually execute the netstat -ant|grep 8002 command.

    • If a connection can be detected, the log collector has been installed successfully.

    • If no connection can be detected, the installation encountered a problem. In this case, submit a ticket.