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!