LogService
作者:互联网
目录
Lgservice是阿里云日志服务,可以实现日志数据采集、消费、投递以及查询分析.其中的LogHub模块专为数据采集定制的功能,提供多种数据采集手段,常用采集插件为logtail.
1 操作流程
1.1 创建Project
https://help.aliyun.com/document_detail/48984.html?spm=a2c4g.11186623.6.581.1543101bNvFbGN
1.2配置logtail
https://help.aliyun.com/document_detail/28982.html?spm=a2c4g.11186623.6.598.37874270uC1p4w
在要监控的文件所在目录下安装logtail:
wget http://logtail-release-cn-shenzhen.oss-cn-shenzhen.aliyuncs.com/linux64/logtail.sh -O logtail.sh; chmod 755 logtail.sh; ./logtail.sh install cn-shenzhen-internet
备注:同一个logtail只能监控已经文件
1.3 配置主账号AliUid
https://help.aliyun.com/document_detail/49007.html?spm=a2c4g.11186623.6.607.3ba81817LRdgQ4
1.4 配置机器组
https://help.aliyun.com/document_detail/28966.html?spm=a2c4g.11186623.6.603.430c7218EMEL3h
备注:阿里云服务器使用ip,非阿里云服务器使用自定义标识符
1.5 创建Logstore
https://help.aliyun.com/document_detail/48990.html?spm=a2c4g.11186623.6.582.2dcb44fbLNxEqf
1.6 采集文本日志
https://help.aliyun.com/document_detail/28967.html?spm=a2c4g.11186623.6.611.2ccc729aJVH7kM
备注:接入数据选择正则-文本数据
标签:https,help,LogService,aliyun,logtail,com,a2c4g.11186623 来源: https://blog.csdn.net/weixin_43875878/article/details/115052128