728x90
반응형
docker-compose.yml
version: '3.8'
services:
logstash:
image: docker.elastic.co/logstash/logstash:7.10.2
ports:
- '9600:9600'
- '9900:9900'
- '9901:9901'
environment:
TZ: UTC
networks:
- prod
configs:
- source: logstash_conf
target: /usr/share/logstash/pipeline/logstash.conf
mode: 0755
networks:
prod:
external: true
configs:
logstash_conf:
file: ./config/logstash.conf
logstash.conf
input {
rabbitmq {
queue => "test.queue"
host => "rabbitmq-01"
port => "5672"
exchange => "test.exchange"
user => "admin"
password => "Passw0rd"
passive => true
durable => true
}
}
filter {
}
output {
stdout { codec => rubydebug }
}
passive 옵션은 queue를 미리 생성했을 경우 시작하면서 queue를 생성하지 않는 옵션이다.
728x90
반응형
'elk' 카테고리의 다른 글
Docker swarm elastic apm 올리기 (0) | 2021.03.18 |
---|