Public Repository

Last pushed: 5 months ago
Short Description
接受 lospout的logstash
Full Description

Dockerfile:
FROM logstash:5.2.2 #官方镜像
MAINTAINER dongbo (dongbo01@docker.com) #定义作者
COPY conf.d/ /etc/logstash/conf.d #拷贝配置文件
EXPOSE 5000 #开放端口
EXPOSE 6000 #开放端口
CMD ["-f","/etc/logstash/conf.d"] #容器启动执行命令

conf.d下的配置文件
100-input.conf:

input {
udp {
port => 5000
codec => "json"
}
}

300-es-output.conf:

output {
elasticsearch {
hosts => ["172.25.200.82:9200"]
index => "rancher-log-%{+YYYY.MM.dd}"
document_type => "log"
}
stdout {
codec => rubydebug
}
}

Docker Pull Command
Owner
dongbo01

Comments (0)