All Products
Search
Document Center

:Configure log collection acceleration for Logtail

Last Updated:Aug 15, 2023

You can enable the global acceleration feature after you install Logtail. Then, you can change the Simple Log Service endpoint to a global acceleration endpoint to switch the collection mode of Logtail to global acceleration. This topic describes how to switch the collection mode of Logtail to global acceleration.

Prerequisites

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

Configuration description

  • 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 on a Linux server.

  • If you enable the global acceleration feature after you install Logtail, you can follow the instructions that are provided in this topic to switch the collection mode of Logtail to global acceleration.

Procedure

  1. Stop Logtail.

    • Linux

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

    • Windows

      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 configuration file, see Startup configuration file (ilogtail_config.json).

  3. Start Logtail.

    • Linux

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

    • Windows

      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.