I configured filebeat with type docker and everything workes well on runnig containers and new started. Also i got in logstash.conf Output to file and elasticsearch.
filebeat.autodiscover:
providers:
- type: docker
templates:
- condition:
regexp:
docker.container.name: '.*service.*'
config:
- type: docker
containers.ids:
- "${data.docker.container.id}"
fields:
service: service
But after first start i was expecting processing old stoped containers logs what does not happened. What is the best way to:
- Start reprocessing old logs of stopped containers to existing outputs or restart filebeat with cleaning registry from very beginning and got logs from all containers?
- How to resend logs from single stopped container to existing outputs?