This topic describes how to specify the ID of an Alibaba Cloud account as a user identifier on a server.
Prerequisites
- A server is available.
The server can be an Elastic Compute Service (ECS) instance that belongs to another Alibaba Cloud account, a server that is provided by a third-party cloud service provider, or a self-managed data center.
- Logtail is installed on the server. For more information, see Install Logtail on a Linux server and Install Logtail on a Windows server.
Background information
Step 1: Obtain the ID of the Alibaba Cloud account for which Log Service is activated
Step 2: Configure a user identifier
Multiple Alibaba Cloud accounts
If you want to use Log Service that is activated for multiple Alibaba Cloud accounts
to collect logs from the same server, you can create multiple user identifier files
on the server and configure the IDs of the Alibaba Cloud accounts as user identifiers.
Example:
touch /etc/ilogtail/users/17****742
touch /etc/ilogtail/users/17****743
Delete a user identifier
Notice We recommend that you delete user identifier files that you no longer need on a server
at the earliest opportunity. Then, Log Service that is activated for the related Alibaba
accounts has no permissions to collect logs from the server.
- Linux
Run the following command to delete the specified user identifier file:
rm /etc/ilogtail/users/17****745
- Windows
Run the following command to delete the specified user identifier file:
del C:\LogtailData\users\17******745