在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:log-pilot开源软件地址:https://gitee.com/AliyunContainerService/log-pilot开源软件介绍:log-pilot
Try itPrerequisites:
# download log-pilot projectgit clone [email protected]:AliyunContainerService/log-pilot.git# build log-pilot imagecd log-pilot/ && ./build-image.sh# quick startcd quickstart/ && ./run Then access kibana under the tips. You will find that tomcat's has been collected and sended to kibana. Create index: Query the logs: QuickstartRun pilotdocker run --rm -it \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /etc/localtime:/etc/localtime \ -v /:/host:ro \ --cap-add SYS_ADMIN \ registry.cn-hangzhou.aliyuncs.com/acs/log-pilot:0.9.5-filebeat Run applications whose logs need to be collectedOpen a new terminal, run the application. With tomcat for example: docker run -it --rm -p 10080:8080 \ -v /usr/local/tomcat/logs \ --label aliyun.logs.catalina=stdout \ --label aliyun.logs.access=/usr/local/tomcat/logs/localhost_access_log.*.txt \ tomcat Now watch the output of log-pilot. You will find that log-pilot get all tomcat's startup logs. If you access tomcat with your broswer, access logs in More Info: Fluentd Plugin and Filebeat Plugin Feature
Build log-pilotPrerequisites:
go get github.com/AliyunContainerService/log-pilotcd $GOPATH/github.com/AliyunContainerService/log-pilot# This will create a new docker image named log-pilot:latest./build-image.sh ContributeYou are welcome to make new issues and pull reuqests. |
请发表评论