Skip to content
Discussion options

You must be logged in to vote

With Docker json-file log driver and 8 files at 100MB each, that's up to 800MB per container. If Vector is scanning all of these, the source lag makes sense — it's probably falling behind trying to read through rotated files.

A few things I'd check: make sure ignore_older_secs is set on the kubernetes_logs source so Vector doesn't try to read all 8 rotated files on startup. Something like ignore_older_secs: 600 would skip files that haven't been modified in 10 minutes.

For the Docker log merging issue, the json-file driver splits long log lines across multiple JSON entries, and Vector should be merging them back. If you're seeing incorrect merges, it might be a timing issue where logs fro…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pront
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants