This topic describes how to select a network type when you use Logtail to collect logs.

Network type

  • Alibaba Cloud internal network: The Alibaba Cloud internal network provides gigabits of shared bandwidth. Transmission of log data over the internal network is stable and fast. The Alibaba Cloud internal network includes virtual private clouds (VPCs) and the classic network.
  • Internet: Transmission of log data over the Internet is limited by the network bandwidth. In addition, network issues such as jitters, latency, and packet loss may affect the speed and stability of data transmission.
  • Global acceleration: This network type can be used to accelerate log collection by using the nodes of Alibaba Cloud Content Delivery Network (CDN). Compared with the Internet, global acceleration provides a more stable network with lower transmission latency.

Select a network type

  • Internal network
    You can use the Alibaba Cloud internal network to transmit log data from an Elastic Compute Service (ECS) instance to a Log Service project. Examples are provided in the following two scenarios:
    • The ECS instance and the Log Service project belong to the same Alibaba Cloud account and reside in the same region.
    • The ECS instance and the Log Service project belong to different Alibaba Cloud accounts but reside in the same region.

    We recommend that you create a Log Service project in the region where the ECS instance resides. Then, you can collect logs of the ECS instance and send the logs to Log Service over the Alibaba Cloud internal network.

  • Internet
    You can use the Internet to transmit log data from an ECS instance or server to a Log Service project. Examples are provided in the following two scenarios:
    • The ECS instance and the Log Service project reside in different regions.
    • The server is provided by a third-party cloud service provider or deployed in your self-managed data center.
  • Global acceleration

    If your servers are deployed in your self-managed data center outside China or provided by a third-party cloud service provider outside China, you can enable global acceleration. Global acceleration can resolve stability and latency issues during data transmission over the Internet. For more information, see Global acceleration.

Server type Reside in the same region as the project Require an Alibaba Cloud account ID ① Network type
ECS instance of the current Alibaba Cloud account Yes No Alibaba Cloud internal network
No No Internet or global acceleration
ECS instance of another Alibaba Cloud account Yes Yes Alibaba Cloud internal network
No Yes Internet or global acceleration
A server that is provided by a third-party cloud service provider or deployed in your self-managed data center N/A Yes Internet or global acceleration

① If your server is an ECS instance that belongs to another Alibaba Cloud account, a server that is provided by a third-party cloud service provider, or a self-managed data center, you must first install Logtail on the server before you can collect logs from the server. Then, you must specify the ID of the Alibaba Cloud account for which Log Service is activated as a user identifier on the server. This way, the Alibaba Cloud account can use Logtail to collect logs from the server. For more information, see Configure a user identifier.

Example

The following table describes how to select a network type based on your business scenario.
Note In this example, your Log Service project resides in the China (Hong Kong) region and your server resides in a global self-managed data center inside or outside China. We recommend that you select global acceleration in the China (Hong Kong) region to collect logs when you install Logtail on the server. Compared with the Internet, global acceleration provides a more stable network with low transmission latency.
Scenario Region of the Log Service project Server type Region of the ECS instance Region selected when Logtail is installed Network type Require an Alibaba Cloud account ID
The ECS instance and the Log Service project are in the same region. China (Hangzhou) ECS instance of the current Alibaba Cloud account China (Hangzhou) China (Hangzhou) Internal network No
The ECS instance and the Log Service project reside in different regions. China (Shanghai) ECS instance of the current Alibaba Cloud account China (Beijing) China (Shanghai) Internet No
The ECS instance and the Log Service project belong to different Alibaba Cloud accounts. China (Shanghai) ECS instance of another Alibaba Cloud account China (Beijing) China (Shanghai) Internet Yes
The server is deployed in your self-managed data center. China (Shenzhen) Server in the self-managed data center N/A China (Shenzhen) Internet Yes
Global acceleration is used. China (Hong Kong) Server in the self-managed data center N/A China (Hong Kong) Global acceleration Yes
Select a network type