Skip to content
Discussion options

You must be logged in to vote

What you found there is actually Vector's configuration file watcher rather than the file source logic that scans for new files. You can find that logic in this file: https://github.com/vectordotdev/vector/blob/master/lib/file-source/src/file_server.rs

glob_minimum_cooldown_ms is the main toggle there to reduce or increase the time between filesystem scans. However, if I remember right, it is in the same event loop that actually reads from the files so if you have a lot of files being watched, Vector could be busy reading from them before it scans for new files to watch. You could try tweaking max_read_bytes to reduce the amount Vector tries to read before scanning for new files.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jszwedko
Comment options

Answer selected by gl1ridae
@gl1ridae
Comment options

@jszwedko
Comment options

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