Alibaba Log Service deployment for ECS

Explore the power of Alibaba Log Service deployment for ECS – your gateway to efficient log management, real-time analytics, and streamlined operations. Stay ahead of the curve with our expert insights and step-by-step guides.

ALIBABA CLOUD

Abhishek Gupta

6/20/20233 min read

Alibaba Log Service deployment for ECS
Alibaba Log Service deployment for ECS

Log Service is a cloud-native observation and analysis platform that provides large-scale, low-cost, and real-time services to process multiple types of data such as logs, metrics, and traces. Log Service allows you to collect, transform, query, analyze, visualize, ship, and consume data. Log Service helps enterprises improve their digital capabilities in terms of R&D, O&M, and data security.

 Alibaba Log Service deployment for ECS
 Alibaba Log Service deployment for ECS
Steps to collect logs from ECS
Part 1: Create Project in Log Service for ECS
  1. Log on to the Log Service console.

  2. In the Projects section, click Create Project.

  3. In the Create Project panel, configure the parameters and click OK. The following table describes the parameters.

Alibaba Log Service deployment for ECS
Alibaba Log Service deployment for ECS
Alibaba Log Service deployment for ECS
Alibaba Log Service deployment for ECS
Alibaba Log Service deployment for ECS
Alibaba Log Service deployment for ECS
Part 2: Install Logtail on ECS
A. Automation — Install using Machine Groups

  1. Click on Alibaba accordion and select Log Service

Alibaba Log Service deployment for ECS
Alibaba Log Service deployment for ECS
Alibaba Log Service deployment for ECS
Alibaba Log Service deployment for ECS

2. Scroll down to Projects and click on ecs-project-log-service

3. Click on Time Series Storage

4. Click on the + sign on Logtail Configuration

Alibaba Log Service deployment for ECS
Alibaba Log Service deployment for ECS

5. Choose Host Monitoring Data

Alibaba Log Service deployment for ECS
Alibaba Log Service deployment for ECS

6. Create log metricstore

Alibaba Log Service deployment for ECS
Alibaba Log Service deployment for ECS

7. Click next after selection

Alibaba Log Service deployment for ECS
Alibaba Log Service deployment for ECS

8. At the Application page, select “Manual Select” under ECS instances and select the instances you wish to install the agents. And click on “Execute Now” button.

Alibaba Log Service deployment for ECS
Alibaba Log Service deployment for ECS

9. Execution will display status; this process will not reboot the server.

Alibaba Log Service deployment for ECS
Alibaba Log Service deployment for ECS

10. Once completed, click on “Return to Overview” We are no completing the install for this application. We only needed the interface to Execute Logtail installation.

Alibaba Log Service deployment for ECS
Alibaba Log Service deployment for ECS

11. If automated installation failed, then need to install manual

B. Manual — Install Logtail on a Linux server
  1. Execute below command on ECS

Alibaba Cloud internal network

wget http://logtail-release-ap-southeast-1.oss-ap-southeast-1-internal.aliyuncs.com/linux64/logtail.sh -O logtail.sh; chmod 755 logtail.sh;

./logtail.sh install ap-southeast-1

Uninstall Logtail

wget http://logtail-release-ap-southeast-1.oss-ap-southeast-1.aliyuncs.com/linux64/logtail.sh -O logtail.sh;chmod 755 logtail.sh;

./logtail.sh uninstall

C. Manual — Install Logtail on a Windows server
  1. Download the installation package. Logtail installation package

  2. Decompress the logtail_installer.zip package to the current directory.

  3. Run below command

Alibaba Cloud internal network

.logtail_installer.exe install ap-southeast-1

Uninstall Logtail

.logtail_installer.exe uninstall

Reference:

https://www.alibabacloud.com/help/en/log-service/latest/manage-a-project

https://www.alibabacloud.com/help/en/log-service/latest/install-logtail-on-a-linux-server

https://www.alibabacloud.com/help/en/log-service/latest/install-logtail-on-a-windows-server