edit-icon download-icon

Install log collector

Last Updated: May 17, 2018

Log collector overview

EDAS provides a suite of functions, where a lot of data is collected from local machines. This requires that the servers can be connected to the relevant machines.

Alibaba Cloud’s network 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 directly.
  • In a VPC, the machines are isolated from the servers. EDAS provides a special utility for VPCs: log collector.

The log collector has two components: Server and Client. SProxy is the log collector client installed on user machines, as shown below:

Log collector sample

Install log collector

To implement the solution shown above, you must first install the log collector on an ECS instance(ECS A in the following example) on the VPC. The installation process is as follows:

  1. Log on to the EDAS console.

  2. On the left-side menu bar, select Resources > VPC.

  3. Switch to the region that contains ECS A and, in the VPC list for this region, find ECS A’s VPC ID. Then, click Install Log Collector in the Actions field.

  4. In the dialog box, copy the installation script.

  5. Log on to the ECS instance where you want to install EDAS Agent as a root user, paste the copied script for installation and press Enter.

  6. After the installation is complete, manually run the netstat -ant|grep 8002 command.

    • If a connection is established, this indicates that the log collector is installed successfully.

    • If no connection is established, this indicates a problem with the installation. In this case, open a ticket.

Thank you! We've received your feedback.