docker-collector-logs icon indicating copy to clipboard operation
docker-collector-logs copied to clipboard

Logs are resend on container restart

Open nilsramsperger opened this issue 2 years ago • 0 comments

Hello.

I noticed that all logs are send again on container restart. That crashed my daily quota. :) According to filebeat documentation the „registry“ prevents this problem. Unfortunately the registry is not persisted within a volume. So I tried to solve the problem by defining the volume myself. The filebeat config says that the registry is stored in /var/lib/filebeat/registry. Sadly the directory does not exist on my two container instances. Looking into the containers I found /opt/filebeat/data/registry. But I do not know, if that directory is the correct place.

It would be nice, if You could implement registry persistence.

Greetings Nils Ramsperger

nilsramsperger avatar Oct 05 '22 15:10 nilsramsperger