1 Unstar Star 1 Fork 11

csphere / logstash-forward

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
基于企业centos镜像构建,转发日志 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

##logstash-forward

转发日志到logstash server 端

如何构建

git clone https://git.oschina.net/csphere/logstash-forward.git
cd logstash-forward
docker build -t csphere/logstash-forward .

启动应用容器

docker run -d -p 80:80 --name myblog --restart=always -e WORDPRESS_DB_USER=myuser -e WORDPRESS_DB_PASSWORD=mypass -e WORDPRESS_DB_HOST=192.168.42.1 -v /data/logs:/var/log/nginx csphere/wordpress:4.3

启动logstash-forward

docker run -d --name logstash-forward -v /data/logs:/data/logs --link elk:elk csphere/logstash-forward

Comments ( 0 )

Sign in for post a comment

1
https://gitee.com/csphere/logstash-forward.git
git@gitee.com:csphere/logstash-forward.git
csphere
logstash-forward
logstash-forward
master

Search