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
Stop Logtail.
Linux
Run the
sudo /etc/init.d/ilogtaild stop
command.Windows
Choose
.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.
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).Start Logtail.
Linux
Run the
sudo /etc/init.d/ilogtaild start
command.Windows
Choose
.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.