This topic describes how to switch the collection mode of Logtail to Global Acceleration. After the collection mode of Logtail is switched to the Global Acceleration mode, log collection is accelerated.

Prerequisites

The global acceleration feature is enabled for the target project. For more information, see Enable the global acceleration feature.

Configurations

  • If the global acceleration feature is enabled before Logtail is installed, select Global Acceleration when you install Logtail. For more information, see Install Logtail in Linux.
  • If the global acceleration feature is enabled after Logtail is installed, follow the instructions in this topic to switch the collection mode of Logtail to Global Acceleration.

Procedure

  1. Stop Logtail.
    • In Linux:

      Run the /etc/init.d/ilogtaild stop command as the root user.

    • In Windows:
      1. Choose Start > Control Panel > Administrative Tools > Services.
      2. On the Services window, right-click the LogtailWorker service, and select Stop.
  2. Modify the Logtail startup configuration file ilogtail_config.json.
    Replace the endpoint in the data_server_list parameter with log-global.aliyuncs.com. For more information, seeStartup configuration file (ilogtail_config.json).
  3. Start Logtail.
    • In Linux:

      Run the /etc/init.d/ilogtaild start command as the root user.

    • In Windows:
      1. Choose Start > Control Panel > Administrative Tools > Services.
      2. On the Services window, right-click the LogtailWorker service, and select Start.