All Products
Document Center

The Logtail configuration needs to be updated after the network type of the ECS instance is switched

Last Updated: Dec 14, 2020


After you use log service and install Logtail on an ECS instance, you need to update the Logtail configuration if the network type of the ECS instance is changed from classic network to VPC.



Follow these steps to update the Logtail configuration:

  1. Log on to the ECS instance with an administrator account and restart Logtail.
    • Linux: run the following commands in sequence:
      sudo /etc/init.d/ilogtaild stop
      sudo /etc/init.d/ilogtaild start
    • Windows: open control panel, and then click administrative tools. Double-click service, right-click LogtailWorker, and then select restart.
  2. Update Machine Group configurations.
    • Use the machine group as a custom identifier: if a custom identifier is configured for the machine group, you do not need to manually update the machine Group configuration.
    • Identify Machine Group as ip address: If you have configured the ECS instance ip address in the machine group, you need to replace the machine Group ip address with the Logtail-rebooted ip address. This is the ip address field in the ECS instance app_info.json file. app_info.json file path is as follows:
      • Linux: /usr/local/ilogtail/app_info.json
      • Windows x64: C:\Program Files (x86)\Alibaba\Logtail\app_info.json
      • Windows x32: C:\Program Files\Alibaba\Logtail\app_info.json


Application scope

  • Log Service