All Products
Search
Document Center

Simple Log Service:Enable the global acceleration feature

Last Updated:Jan 19, 2024

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

Step 1: Enable the global acceleration feature

The global acceleration feature is in public preview. To enable the global acceleration feature for a Simple Log Service project, submit a ticket to contact technical support.

Step 2: Configure log collection acceleration for Logtail

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

Use the global acceleration method to install Logtail

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

Modify a Logtail configuration

If you enable the global 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 global acceleration feature takes effect only for projects for which Global Accelerator (GA) is activated. To check the network connectivity of GA, 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 global 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 Modify next to Global Acceleration.

  4. In the Global Acceleration panel, configure CNAME for your accelerated domain and click Disable Acceleration.

    Important

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