All Products
Search
Document Center

Simple Log Service:Log collection acceleration

Last Updated:Jul 09, 2024

This topic describes how to enable the transfer acceleration feature to accelerate data collection in the Simple Log Service console.

Prerequisites

The transfer acceleration feature of the project is enabled. image

Configure log collection acceleration for Logtail

You can use one of the following methods to configure log collection acceleration for Logtail.

Use the transfer acceleration method to install Logtail

If you enable the transfer acceleration feature before you install Logtail, you can select the installation method of transfer acceleration when you install Logtail. For more information, see Install Logtail.

Modify a Logtail configuration

If you enable the transfer acceleration feature after you install Logtail, you must modify your Logtail configuration.

  1. Stop Logtail.

    • Linux operating system

      Run the sudo /etc/init.d/ilogtaild stop command.

    • Windows operating system

      1. Choose Start Menu > Control Panel > Administrative Tools > Services.

      2. In the Services dialog box, find the service that you want to manage. If your Logtail runs V1.0.0.0 or later, find the LogtailDaemon service. If your Logtail runs V0.x.x.x, find the LogtailWorker service. Then, right-click the service and select Stop.

  2. Modify the Logtail startup configuration file named ilogtail_config.json.

    Replace the value of endpoint in the data_server_list parameter with log-global.aliyuncs.com. For more information about the path to the ilogtail_config.json configuration file, see Startup configuration file (ilogtail_config.json).

  3. Start Logtail.

    • Linux operating system

      Run the sudo /etc/init.d/ilogtaild start command.

    • Windows operating system

      1. Choose Start Menu > Control Panel > Administrative Tools > Services.

      2. In the Services dialog box, find the service that you want to manage. If your Logtail runs V1.0.0.0 or later, find the LogtailDaemon service. If your Logtail runs V0.x.x.x, find the LogtailWorker service. Then, right-click the service and select Start.

What to do next

Configure log collection acceleration for other collection methods

Replace ${Endpoint} or ${host} in your collection configuration with log-global.aliyuncs.com to accelerate log collection.

Check network connectivity

  1. The transfer acceleration feature takes effect only for projects for which the transfer acceleration feature is activated. To check the network connectivity of transfer acceleration, run the following command:

    curl ${your-project}.log-global.aliyuncs.com
  2. If the following result is returned, the network connection is normal.

    {"Error":{"Code":"OLSInvalidMethod","Message":"The script name is invalid : /","RequestId":"XXXXXXXXXXXXXXXXXXX"}}

Disable the transfer acceleration feature

  1. Log on to the Simple Log Service console.

  2. In the Projects section, click the project that you want to manage.

  3. On the Project Overview page, click Delete next to Acceleration Endpoint.

  4. In the Confirm panel, click Modify.

    Important

    Before you disable the transfer acceleration feature, make sure that you no longer use the domain to upload or query data.