This topic describes how to enable the transfer acceleration feature to accelerate data collection in the Simple Log Service console.
Prerequisites
The transfer acceleration feature of the project is enabled.
Configure log collection acceleration for Logtail
You can use one of the following methods to configure log collection acceleration for Logtail.
Use the transfer acceleration method to install Logtail
If you enable the transfer acceleration feature before you install Logtail, you can select the installation method of transfer acceleration when you install Logtail. For more information, see Install Logtail.
Modify a Logtail configuration
If you enable the transfer acceleration feature after you install Logtail, you must modify your Logtail configuration.
Stop Logtail.
Linux operating system
Run the
sudo /etc/init.d/ilogtaild stop
command.Windows operating system
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 ilogtail_config.json configuration file, see Startup configuration file (ilogtail_config.json).Start Logtail.
Linux operating system
Run the
sudo /etc/init.d/ilogtaild start
command.Windows operating system
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.
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
The transfer acceleration feature takes effect only for projects for which the transfer acceleration feature is activated. To check the network connectivity of transfer acceleration, run the following command:
curl ${your-project}.log-global.aliyuncs.com
If the following result is returned, the network connection is normal.
{"Error":{"Code":"OLSInvalidMethod","Message":"The script name is invalid : /","RequestId":"XXXXXXXXXXXXXXXXXXX"}}
Disable the transfer acceleration feature
Log on to the Simple Log Service console.
In the Projects section, click the project that you want to manage.
On the Project Overview page, click Delete next to Acceleration Endpoint.
In the Confirm panel, click Modify.
ImportantBefore you disable the transfer acceleration feature, make sure that you no longer use the domain to upload or query data.