This topic describes how to switch the collection mode of Logtail to Global Acceleration after you install Logtail.

Prerequisites

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

Configurations

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

Procedure

  1. Stop Logtail.
    • Linux:

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

    • Windows:
      1. Choose Start Menu > 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, see Startup configuration file (ilogtail_config.json).
  3. Start Logtail.
    • Linux:

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

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