1.开启日志服务
2.新建project->新建log store
log store可以创建多个同组配置的机器组,可以同时收集他们的日志
3.ecs里面去下载log strash
华东2:
wget http://logtail-release-sh.oss-cn-shanghai-internal.aliyuncs.com/linux64/logtail.sh; chmod 755 logtail.sh; sh logtail.sh install cn_shanghai
4.下载检测log strash工具
wget http://logtail-release.oss-cn-hangzhou.aliyuncs.com/linux64/checkingtool.sh
测试采集器
./checkingtool.sh --logFile /var/log/nginx/access.log