If Logtail is installed on ECS servers under other Alibaba Cloud accounts, provided by other cloud vendors, or located in on-premises IDCs, you must configure AliUids for the servers so that they can be added into machine groups for log collection.
- View the Alibaba Cloud account ID, namely, the AliUid.
You can view the AliUid of the account to which the Log Service project belongs on the Account Management page.
- Configure an AliUid for the server.
- In Linux:
Create a file named after the AliUid in the /etc/ilogtail/users directory. If the directory does not exist, you need to create one. You can configure multiple AliUids for a single server by running a command similar to the following:
touch /etc/ilogtail/users/1559122535028493 touch /etc/ilogtail/users/1329232535020452If you do not need Logtail to collect data to your Log Service project, you can delete the AliUid:
- In Windows:
Create a file named after the AliUid in the C:\LogtailData\users directory.
If you want to delete the AliUid, you can simply delete this file. (C:\LogtailData\users\1559122535028493 is used as an example file.)Note
- After an AliUid is configured for a server, the Alibaba Cloud account has the permission to collect logs from the server by using Logtail. You need to delete unnecessary AliUid files from the server in a timely manner.
- Addition and deletion of an AliUid take effect within 1 minute.
- In Linux: