After global acceleration is enabled, the Logtail that is installed in global acceleration mode automatically collects logs in global acceleration mode. For the Logtail that is installed before global acceleration is enabled, you need to manually switch the acceleration mode to global acceleration by performing the steps in this topic.

Prerequisites

  1. Enable HTTP acceleration.
  2. (Optional) Enable HTTP acceleration.

    If you use HTTPS to access Log Service, make sure that HTTPS acceleration has been enabled and that you have configured HTTPS acceleration by following the instructions provided in Enable HTTP acceleration.

  3. Make sure that acceleration functions normally

    by following the instructions provided in Enable Global Acceleration.

Before you begin

Before you configure Logtail collection acceleration, note that:
  • If the Logtail is installed after global acceleration enabling, you must set the installation mode to global acceleration by following the instructions provided in Linux. Then, the Logtail collects logs using global acceleration mode methods.
  • If the Logtail is installed before global acceleration is enabled, you must switch the Logtail collection mode to global acceleration by performing the steps in this topic.

Switch the Logtail collection mode to global acceleration.

  1. Stop the Logtail.
    • In Linux, run /etc/init.d/ilogtaild stop as the admin user.
    • In Windows:
      1. In Control Panel, choose System and Security > Administrative Tools.
      2. Open the Services program and locate the LogtailWorker file.
      3. Right-click the file and click Stop in the shortcut menu.
  2. Modify the Logtail startup configuration file ilogtail_config.json.

    Change the endpoint in data_server_list to log-global.aliyuncs.com by following the instructions provided in Startup configuration file (ilogtail_config.json).

  3. Start the Logtail.
    • In Linux, run /etc/init.d/ilogtaild start as the admin user.
    • In Windows:
      1. In Control Panel, choose System and Security > Administrative Tools.
      2. Open the Services program and locate the LogtailWorker file.
      3. Right-click the file and click Start in the shortcut menu.