全部产品
业务实时监控服务 ARMS

Agent 安装

更新时间:2017-08-04 16:30:16   分享:   

目前 ARMS 的 ECS 日志源通过 SLS 的 Agent 来收集日志。

1. 安装 Logtail

覆盖安装模式(如之前已安装过 Logtail,那么安装器会先执行卸载、删除 /usr/local/ilogtail 目录后再重新安装),安装后默认启动 Logtail。

请根据机器所处的网络环境和日志服务所在 Region 下载安装器,选择不同参数进行安装。

  • ECS 经典网络

    数据通过阿里云内网写入日志服务,不消耗公网带宽。适用于阿里云 ECS。

  • 华北 2 (北京)
    1. wget http://logtail-release-bj.oss-cn-beijing-internal.aliyuncs.com/linux64/logtail.sh
    2. chmod 755 logtail.sh
    3. sudo sh logtail.sh install cn_beijing
    4. sudo touch /etc/ilogtail/users/1098370038733503
  • 华北 1 (青岛)

    1. wget http://logtail-release-qd.oss-cn-qingdao-internal.aliyuncs.com/linux64/logtail.sh
    2. chmod 755 logtail.sh
    3. sudo sh logtail.sh install cn_qingdao
    4. sudo touch /etc/ilogtail/users/1098370038733503
  • 华东 1 (杭州)

    1. wget http://logtail-release.oss-cn-hangzhou-internal.aliyuncs.com/linux64/logtail.sh
    2. chmod 755 logtail.sh
    3. sudo sh logtail.sh install cn_hangzhou
    4. sudo touch /etc/ilogtail/users/1098370038733503
  • 华东 2 (上海)

    1. wget http://logtail-release-sh.oss-cn-shanghai-internal.aliyuncs.com/linux64/logtail.sh
    2. chmod 755 logtail.sh
    3. sudo sh logtail.sh install cn_shanghai
    4. sudo touch /etc/ilogtail/users/1098370038733503
  • 华南 1 (深圳)

    1. wget http://logtail-release-sz.oss-cn-shenzhen-internal.aliyuncs.com/linux64/logtail.sh
    2. chmod 755 logtail.sh
    3. sudo sh logtail.sh install cn_shenzhen
    4. sudo touch /etc/ilogtail/users/1098370038733503
  • ECS 专有网络 VPC

数据通过阿里云专有网络写入日志服务。适用于阿里云ECS VPC。

  • 华北 2 (北京)
    1. wget http://logtail-release-bj.vpc100-oss-cn-beijing.aliyuncs.com/linux64/logtail.sh
    2. chmod 755 logtail.sh
    3. sudo sh logtail.sh install cn_beijing_vpc
    4. sudo touch /etc/ilogtail/users/1098370038733503
  • 华东 1 (杭州)
    1. wget http://logtail-release.vpc100-oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh
    2. chmod 755 logtail.sh
    3. sudo sh logtail.sh install cn_hangzhou_vpc
    4. sudo touch /etc/ilogtail/users/1098370038733503
  • 华东 2 (上海)
    1. wget http://logtail-release-sh.vpc100-oss-cn-shanghai.aliyuncs.com/linux64/logtail.sh
    2. chmod 755 logtail.sh
    3. sudo sh logtail.sh install cn_shanghai_vpc
    4. sudo touch /etc/ilogtail/users/1098370038733503
  • 华南 1 (深圳)

    1. wget http://logtail-release-sz.vpc100-oss-cn-shenzhen.aliyuncs.com/linux64/logtail.sh
    2. chmod 755 logtail.sh
    3. sudo sh logtail.sh install cn_shenzhen_vpc
    4. sudo touch /etc/ilogtail/users/1098370038733503
  • 公网(自建IDC或其它云主机)

    数据通过公网写入日志服务,占用公网带宽。适用于非阿里云虚拟机或其它IDC。

    日志服务无法获取非阿里云机器的属主信息,请在安装 Logtail 后手动配置用户标识,参考,否则 Logtail 心跳异常、无法收集日志。

    • 华北 2 (北京)
      1. wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh
      2. chmod 755 logtail.sh
      3. sudo sh logtail.sh install cn_beijing_internet
      4. sudo touch /etc/ilogtail/users/1098370038733503
    • 华北 1 (青岛)
      1. wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh
      2. chmod 755 logtail.sh
      3. sudo sh logtail.sh install cn_qingdao_internet
      4. sudo touch /etc/ilogtail/users/1098370038733503
    • 华东 1 (杭州)

      1. wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh
      2. chmod 755 logtail.sh
      3. sudo sh logtail.sh install cn_hangzhou_internet
      4. sudo touch /etc/ilogtail/users/1098370038733503
    • 华东 2 (上海)

      1. wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh
      2. chmod 755 logtail.sh
      3. sudo sh logtail.sh install cn_shanghai_internet
      4. sudo touch /etc/ilogtail/users/1098370038733503
    • 华南 1 (深圳)
      1. wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh
      2. chmod 755 logtail.sh
      3. sudo sh logtail.sh install cn_shenzhen_internet
      4. sudo touch /etc/ilogtail/users/1098370038733503

2. 验证Logtail

在ECS数据源管理中点击”检查Agent”,等待一分钟内当Agent状态变为”已安装”后则表示为生效。400

3. 卸载Logtail

参考【安装Logtail】章节下载安装器logtail.sh,shell下以管理员权限执行:

  1. sudo sh logtail.sh uninstall
  2. sudo rm -rf /etc/ilogtail/users/1098370038733503
本文导读目录
本文导读目录
以上内容是否对您有帮助?