vectordotdev / vectordotdev/vector

Add an option for setting maximal flush interval to the `file` sink

Open
#2,174 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

domain: templating have: should meta: feedback sink: file
Dominant language
Rust
Stars
22.6k
Forks
2.3k
Avg merge
1d 7h
Merged PRs (30d)
146

Description

A new option which would set the maximal time period between consecutive flushes could be added to the file sink. It was requested in the chat:

is there a way to define the flush interval? eg: I have "socket" as sources and "file" as sinks, can I "create the file" (flush out the source to the file) every 30 seconds?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the file sink implementation and its current flush behavior. Determine how a configurable maximum interval should interact with existing flushing, then add coverage for the requested 30-second case; done means the file sink accepts the option and flushes no less often than that interval.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
stream-processing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.