Install Logtail on Linux

Last Updated: Jul 05, 2017

Supported systems

  • Logtail supports the following 64-bit Linux releases.

    • Aliyun Linux
    • Ubuntu
    • Debian
    • CentOS
    • OpenSUSE

Install Logtail

Install Logtail in overwrite mode. By default, Logtail is launched after the installation is complete. (If you have installed Logtail before, the installer uninstalls and deletes the /usr/local/ilogtail directory before installing Logtail.)

Download the installer based on the network environment of your machine and the region of Log Service. Select different parameters for installation.

ECS of classic network

Data is written to Log Service through the Alibaba Cloud intranet without consuming public bandwidth. It is applicable to Alibaba Cloud ECS.

  • China North 2 (Beijing)

    1. wget http://logtail-release-bj.oss-cn-beijing-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn_beijing
  • China North 1 (Qingdao)

    1. wget http://logtail-release-qd.oss-cn-qingdao-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn_qingdao
  • China East 1 (Hangzhou)

    1. wget http://logtail-release.oss-cn-hangzhou-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn_hangzhou
  • China East 2 (Shanghai)

    1. wget http://logtail-release-sh.oss-cn-shanghai-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn_shanghai
  • China South 1 (Shenzhen)

    1. wget http://logtail-release-sz.oss-cn-shenzhen-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn_shenzhen
  • China North 3 (Zhangjiakou)

    1. wget http://logtail-release-zjk.oss-cn-zhangjiakou-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn-zhangjiakou
  • Hong Kong

    1. wget http://logtail-release-hk.oss-cn-hongkong-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn-hongkong
  • US West 1 (Silicon Valley)

    1. wget http://logtail-release-us-west-1.oss-us-west-1-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install us-west-1
  • Asia Pacific SE 1 (Singapore)

    1. wget http://logtail-release-ap-southeast-1.oss-ap-southeast-1-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install ap-southeast-1
  • Asia Pacific SE 2 (Sydney)

    1. wget http://logtail-release-ap-southeast-2.oss-ap-southeast-2-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install ap-southeast-2
  • Asia Pacific NE 1 (Tokyo)

    1. wget http://logtail-release-ap-northeast-1.oss-ap-northeast-1-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install ap-northeast-1
  • Germany 1 (Frankfurt)

    1. wget http://logtail-release-eu-central-1.oss-eu-central-1-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install eu-central-1
  • Middle East 1 (Dubai)

    1. wget http://logtail-release-me-east-1.oss-me-east-1-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install me-east-1

ECS of VPC

Data is written to Log Service through Alibaba Cloud VPC. It is applicable to Alibaba Cloud ECS of VPC.

  • China North 2 (Beijing)

    1. wget http://logtail-release-bj.vpc100-oss-cn-beijing.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn_beijing_vpc
  • China East 1 (Hangzhou)

    1. wget http://logtail-release.vpc100-oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn_hangzhou_vpc
  • China East 2 (Shanghai)

    1. wget http://logtail-release-sh.vpc100-oss-cn-shanghai.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn_shanghai_vpc
  • China South 1 (Shenzhen)

    1. wget http://logtail-release-sz.vpc100-oss-cn-shenzhen.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn_shenzhen_vpc
  • China North 3 (Zhangjiakou)

    1. wget http://logtail-release-zjk.oss-cn-zhangjiakou-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn-zhangjiakou_vpc
  • Hong Kong

    1. wget http://logtail-release-hk.vpc100-oss-cn-hongkong.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn-hongkong_vpc
  • US West 1 (Silicon Valley)

    1. wget http://logtail-release-us-west-1.vpc100-oss-us-west-1.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install us-west-1_vpc
  • Asia Pacific SE 1 (Singapore)

    1. wget http://logtail-release-ap-southeast-1.vpc100-oss-ap-southeast-1.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install ap-southeast-1_vpc
  • Asia Pacific SE 2 (Sydney)

    1. wget http://logtail-release-ap-southeast-2.oss-ap-southeast-2-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install ap-southeast-2_vpc
  • Asia Pacific NE 1 (Tokyo)

    1. wget http://logtail-release-ap-northeast-1.oss-ap-northeast-1-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install ap-northeast-1_vpc
  • Germany 1 (Frankfurt)

    1. wget http://logtail-release-eu-central-1.oss-eu-central-1-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install eu-central-1_vpc
  • Middle East 1 (Dubai)

    1. wget http://logtail-release-me-east-1.oss-me-east-1-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install me-east-1_vpc

Internet (self-build IDCs or other cloud hosts)

Data is written to Log Service through the Internet, which consumes public bandwidth. It is applicable to non-Alibaba Cloud virtual machines or other IDCs.

Because Log Service cannot obtain the owner information of non-Alibaba Cloud machines, you need to manually configure a user ID after installing Logtail. For details, refer to Configure user IDs for non-Alibaba Cloud ECS. If you do not configure a user ID, Logtail will have abnormal heartbeats and fail to collect logs.

  • China North 2 (Beijing)

    1. wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn_beijing_internet
  • China North 1 (Qingdao)

    1. wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn_qingdao_internet
  • China East 1 (Hangzhou)

    1. wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn_hangzhou_internet
  • China East 2 (Shanghai)

    1. wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn_shanghai_internet
  • China South 1 (Shenzhen)

    1. wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn_shenzhen_internet
  • China North 3 (Zhangjiakou)

    1. wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn-zhangjiakou_internet
  • Hong Kong

    1. wget http://logtail-release-hk.oss-cn-hongkong.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn-hongkong_internet
  • US West 1 (Silicon Valley)

    1. wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install us-west-1_internet
  • Asia Pacific SE 1 (Singapore)

    1. wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install ap-southeast-1_internet
  • Asia Pacific SE 2 (Sydney)

    1. wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install ap-southeast-2_internet
  • Asia Pacific NE 1 (Tokyo)

    1. wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install ap-northeast-1_internet
  • Germany 1 (Frankfurt)

    1. wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install eu-central-1_internet
  • Middle East 1 (Dubai)

    1. wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install me-east-1_internet

ECS of AntCloud

  • China East 1 (Hangzhou)

    1. wget http://logtail-release-hz-finance.oss-cn-hzjbp-a-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn_hangzhou_finance
  • China South 1 (Shenzhen)

    1. wget http://logtail-release-sz-finance.oss-cn-shenzhen-finance-1-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn_shenzhen_finance

Uninstall Logtail

Refer to the Install Logtail section for details about downloading the logtail.sh installer. Run the following command as admin in shell mode.

  1. wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh uninstall
Thank you! We've received your feedback.