-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filebeat autodiscovery for docker seems to miss collecting logs of crashed containers #10374
Comments
@jsoriano can you have a look at this?, please |
In kubernetes autodiscover the |
@jsoriano Any progress? Do you need any information? |
@farodin91 I have given a quick try to add the |
I will try it Monday. |
It is possible to get a docker image to test this. |
@farodin91 I have pushed PR will need some work as there are some tests failing. |
It works. |
@farodin91 thanks for testing it! |
cleanup_timeout is used in kubernetes autodiscover to wait some time before the configurations associated to stopped containers are removed. Add an equivalent option to docker autodiscover. Fix #10374
@jsoriano What version will contain the fix? |
@farodin91 it is not included in any version yet, so I guess the first one with this will be 7.1.0. |
Is there any release date for 7.1.0? |
@farodin91 not yet, sorry. But I am thinking now that we could backport this to 7.0 and 6.7, but disabled by default (with |
This would work for me. |
cleanup_timeout is used in kubernetes autodiscover to wait some time before the configurations associated to stopped containers are removed. Add an equivalent option to docker autodiscover. Fix elastic#10374 (cherry picked from commit f771497)
cleanup_timeout is used in kubernetes autodiscover to wait some time before the configurations associated to stopped containers are removed. Add an equivalent option to docker autodiscover. Fix elastic#10374 (cherry picked from commit f771497)
cleanup_timeout is used in kubernetes autodiscover to wait some time before the configurations associated to stopped containers are removed. Add an equivalent option to docker autodiscover. Fix elastic#10374 (cherry picked from commit f771497)
@farodin91 we have backported #10905 to 6.7 and 7.0. In 6.7 it will be disabled by default (configured with zero cleanup timeout). On this version you'll need to set |
We are running a multi-node swarm. If services crashes and produces a log entry with the crash exception, these logs are not forward to our Logstash. Besides, we are able to see these logs with docker log.
Please include configurations and logs if available.
For confirmed bugs, please report:
filebeat.yml
docker-compose.yml
Which modules are you running?
Only system and docker autodiscover
Have you checked filebeat logs for errors?
There is one error which is already report and fixed in the master #9305
Have you checked if filebeat is reading the log file (registry file contains offset, log includes info message on Start/Stop of a harvester)?
I see only logs up to the registry position.
Why we are not seeing these logs? In logstash.
Copied from https://discuss.elastic.co/t/filebeat-autodiscovery-for-docker-seems-to-miss-collecting-logs-of-crashed-containers/159324/3
The text was updated successfully, but these errors were encountered: