Stack deployment is not working

Hi Guys,

I am running my containers in swarm mode. From the Master node I want to do stack deploy filebeat container to all the worker nodes. I want to collect the logs from the other nodes. Any other idea using filebeat.
I am trying to do like this

version: '3.1'
services:
filebeat:
image: some/filebeat:latest
environment:
- LOGSTASH_HOST=13.12.11.71
- LOGSTASH_PORT=5000
- SHIPPER_NAME=hostname
networks:
- filebeatnetwork
volumes:
- /var/run/docker.sock:/tmp/docker.sock
deploy:
mode: global
placement:
constraints:
- node.role == worker
update_config:
parallelism: 3
delay: 10s
restart_policy:
condition: on-failure
max_attempts: 10
networks:
filebeatnetwork:
external: true

any help!

Filebeat instances can be deployed in containers dynamically using Autodiscover. It seems to me that using this feature fits your usecase: https://www.elastic.co/guide/en/beats/filebeat/current/configuration-autodiscover.html

If it's not, could you please provide more context?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.