码迷,mamicode.com
首页 > 其他好文 > 详细

阿里云logtail采集IDC机房机器需添加AliUids操作

时间:2019-03-11 16:13:27      阅读:248      评论:0      收藏:0      [点我收藏+]

标签:grant   hang   spm   form   use   lock   directory   mil   codeblock   

Configure AliUids for ECS servers under other Alibaba Cloud accounts or on-premises IDCs

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.

Background information

If the target server for log collection through Logtail is purchased by another Alibaba Cloud account or provided by another cloud vendor, you need to install Logtail on the server and configure an AliUid for it. By doing so, you grant your Alibaba Cloud account the permissions to access and collect logs from the server. Otherwise, the server does not receive heartbeat information and cannot collect logs.

Prerequisites

  • The target server for log collection is under another Alibaba Cloud account, provided by another cloud vendor, or located in an on-premises IDC.
  • The Logtail client is installed on the server.

    For more information, see Install Logtail in Linux and Install Logtail in Windows as needed.

Procedure

  1. 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.

    Figure 1. View your Alibaba Cloud account ID
    技术图片
  2. 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/1329232535020452
      If you do not need Logtail to collect data to your Log Service project, you can delete the AliUid:
      rm /etc/ilogtail/users/1559122535028493

阿里云logtail采集IDC机房机器需添加AliUids操作

标签:grant   hang   spm   form   use   lock   directory   mil   codeblock   

原文地址:https://www.cnblogs.com/weifeng1463/p/10511208.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!