我想从一个rancher
服务(如my_service
)日志发送到另一个rancher
服务与syslog
司机有问题的(记录)服务的牧场主
我通过docker-compose
为建立我的堆栈运行ELK
堆栈发现如下或多或少:
elk-custom:
# image: elk-custom
build:
context: .
dockerfile: Dockerfile-elk
ports:
- 5601:5601
- 9200:9200
- 5044:5044
- 5151:5151
- 5152:5152
my_service:
image: some_image_from_my_local_registry
depends_on:
- elk-custom
logging:
driver: syslog
options:
syslog-address: "tcp://elk-custom:514"
然而,在栈上的仪表板,为my_service
我得到:
my_service (Expected state running but got error: Error response from daemon: failed to initialize logging driver: dial tcp: lookup elk-custom on 10.0.2.3:53: server misbehaving)
是否还需要其他任何东西才能使特定的日志记录(elk-custom
)服务可被发现?
假设堆栈名称为'ELK',请尝试'ELK.elk-custom'或'elk-custom.ELK' –
,你的意思是在'syslog-address'字段中。 'syslog-address:“tcp://ELK.elk-custom:5151”'? – pkaramol
尝试了上述,现在变得'没有这样的主机' – pkaramol