增加logstash支持
parent
e7b673d48d
commit
0e5aee02cf
|
@ -0,0 +1,14 @@
|
|||
input {
|
||||
tcp {
|
||||
mode => "server"
|
||||
host => "0.0.0.0"
|
||||
port => 4560
|
||||
codec => json_lines
|
||||
}
|
||||
}
|
||||
output {
|
||||
elasticsearch {
|
||||
hosts => "elasticsearch:9200"
|
||||
index => "springboot-logstash-%{+YYYY.MM.dd}"
|
||||
}
|
||||
}
|
|
@ -75,6 +75,17 @@ services:
|
|||
- stack
|
||||
depends_on: ['elasticsearch']
|
||||
|
||||
|
||||
logstash:
|
||||
image: logstash:7.3.0
|
||||
container_name: logstash
|
||||
volumes:
|
||||
- ./config/logstash-springboot.conf:/usr/share/logstash/pipeline/logstash.conf #挂载logstash的配置文件
|
||||
networks:
|
||||
- stack
|
||||
depends_on: ['elasticsearch']
|
||||
ports: ['4560:4560']
|
||||
|
||||
# rocket mq name server
|
||||
rmqnamesrv:
|
||||
image: foxiswho/rocketmq:server
|
||||
|
|
Loading…
Reference in New Issue