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:
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:
Log on to the EDAS console.
On the left-side menu bar, select Resources > VPC.
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.
In the dialog box, copy the installation script.
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.
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.