-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Cannot receive logs from docker #17747
Comments
Hi @aido93, Thank you for providing all this context! As you have encountered, the Docker source intentionally drops logs that are received with out of order timestamps and emits the above error message when that happens. This also includes logs with a timestamp that occurred before Vector started. If you are seeing these error logs only shortly after Vector starts up, then this is likely the case. Now, that still doesn't explain why you are not seeing the traefik access logs in openobserve. To help you with that, could you share the full Vector configuration you are using, including the sink? I took a look at the debug output you linked and Vector behaved as expected without any errors. It is consuming logs from the |
hello, i'v too having this problems, can you help please?
vector.toml:
|
I took a deeper look at the source code and this is not an actual error. I've opened #18649 that explains more and removes the error. |
Hey @dsmith3197, just to confirm the expected behavior: The docker_logs source will drop all log events with a timestamp before vector's init timestamp, meaning that if we temporarily stop or restart the vector service then all docker_logs generated while vector was down will be lost? |
Correct, that is the behavior today. |
As a follow-up to this, is there some way to tell Vector to process all the Docker logs it can find that it hasn't already processed, even if those logs were created before Vector was started? |
Not as of today. #7358 is an open feature request for checkpointing support. |
A note for the community
Problem
I'm trying to collect logs from docker containers, but I'm getting errors like:
I expect that docker logs can be collected successfully.
Configuration
Version
0.30.0
Debug Output
Example Data
You can run some services in docker and see what's happening. Here is example docker-compose.yml that runs openobserve behind traefik. So when openobserver webpage is reloaded traefik writes to accesslog. I expect to see this accesslog in vector at first and in openobserve afterwards.
Additional Context
Error message is from
src/sources/docker_logs/mod.rs:1013
References
No response
The text was updated successfully, but these errors were encountered: