IDC machine room machine log acquisition configuration

Take the machine gpu-server-011 as an example:

Add AliUids to the computer room machine

[[emailprotected] ~]# mkdir -p /etc/ilogtail/users/
[[email Protected] ~]# touch /etc/ilogtail/users/12********50

  

Install logtail log collection tool

[[email protected] ~]# wget http://logtail-release-cn-hangzhou.oss -cn-hangzhou.aliyuncs.com/linux64/logtail.sh -O logtail.sh; chmod 755 logtail.sh; ./logtail.sh install cn-hangzhou-internet

 --2019-03-13 15:58:18-- http://logtail-release-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh
 Resolving logtail-release-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com (logtail-release-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com)... 47.110.177.92
 Connecting to logtail-release-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com (logtail-release-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com)|47.110.177.92|:80... connected.
 HTTP request sent, awaiting response... 200 OK

  

[[emailprotected] ~]# ps aux|grep logtail // logtail process is already running
root 28589 0.0 0.0 69696 2500? Ss 15:58 0:00 /usr/local/ilogtail/ilogtail
root 28590 0.3 0.0 177292 6996? Sl 15:58 0:00 /usr/local/ilogtail/ilogtail

  

Enter Alibaba Cloud’s log service-project-logstore

Click logtail machine group-create machine group

create machine group information: Machine group Name: gpu-server011, ip address: 172.20.18.111

Check the status of the machine group, and then Refresh in a few seconds. If the heartbeat is displayed as OK, it means that the connection with the machine in the IDC computer room is established normally, and the logs on the machine can be collected normally.

Click logstore-logtail configuration (management) to configure the collected machines and log files Path

[[emailprotected] ~]# mkdir -p /etc/ilogtail/users/
[[email Protected] ~]# touch /etc/ilogtail/users/12********50

[[email protected] ~]# wget http://logtail-release-cn-hangzhou.oss-cn -hangzhou.aliyuncs.com/linux64/logtail.sh -O logtail.sh; chmod 755 logtail.sh; ./logtail.sh install cn-hangzhou-internet

 --2019-03-13 15:58:18-- http://logtail-release-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/linux64/logtail.sh
 Resolving logtail-release-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com (logtail-release-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com)... 47.110.177.92
 Connecting to logtail-release-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com (logtail-release-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com)|47.110.177.92|:80... connected.
 HTTP request sent, awaiting response... 200 OK

[[emailprotected] ~]# ps aux|grep logtail // logtail process is already running
root 28589 0.0 0.0 69696 2500? Ss 15:58 0:00 /usr/local/ilogtail/ilogtail
root 28590 0.3 0.0 177292 6996? Sl 15:58 0:00 /usr/local/ilogtail/ilogtail

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 1997 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.