-
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
vector sends thousands of log lines when it cannot read the logs from docker containers #7272
Comments
This does not only happen with "broken" drivers, this also happens with build containers. During @jszwedko can you prioritize this and assign it to a milestone again? |
@pgassmann to confirm, you are using the |
@jszwedko no, I don't use the loki driver anymore. There are other cases where vector cannot read the logs. With
In such cases vector tries hundreds times a second to connect to the logs and sends above mentioned error messages. Example to reproduce:
run |
Aha, gotcha, thanks for confirming @pgassmann I can verify that if the log driver does not support reading, Vector does output continuous log messages. Reproduce: data_dir = "/var/lib/vector/"
[sources.source0]
auto_partial_merge = true
host_key = "host"
partial_event_marker_field = "_partial"
retry_backoff_secs = 2
type = "docker_logs"
[sinks.sink0]
inputs = ["source0"]
target = "stdout"
type = "console"
[sinks.sink0.encoding]
codec = "json"
[sinks.sink0.healthcheck]
enabled = true
[sinks.sink0.buffer]
type = "memory"
max_events = 500
when_full = "block" I ran:
To generate unreadable logs. I saw:
Followed by a continuous stream of:
|
While regarding:
Those aren't logs from Vector, but a proper error message from Docker/log driver so that's working as intended, and depends on the log driver or Docker version. Although, the amount of events is too large, but that will also be solved with the linked PR. |
Vector Version
Docker version:
Docker version 20.10.5, build 55c4c88
Vector Configuration File
Debug Output
Expected Behavior
Actual Behavior
Example Data
Example message (without the metadata that is also sent):
Full example message (json):
Full message as screenshot from grafana explore view of loki
Additional Context
The log driver in use was the loki docker log driver which sometimes got stuck. that's why we want to replace it with vector ;-)
But the problem could also be happening with other cases where vector cannot read logs.
References
The text was updated successfully, but these errors were encountered: