feat(new transform): add stdio transform#24547
Open
JeanMertz wants to merge 1 commit intovectordotdev:masterfrom
Open
feat(new transform): add stdio transform#24547JeanMertz wants to merge 1 commit intovectordotdev:masterfrom
stdio transform#24547JeanMertz wants to merge 1 commit intovectordotdev:masterfrom
Conversation
Add a new transform that pipes events through external processes via stdin/stdout, enabling integration with any command-line tool. Supports three operating modes: - Streaming: long-running process receiving continuous event flow - Scheduled: periodic batch execution on a configurable interval - Per Event: spawn a new process for each event with concurrency control This transform is modeled after the `exec` source, but with some differences: - It adds the `Per Event` run-mode, which spawns a new process for each event with concurrency control. - Supports optional capturing of `stderr` output. - It allows for configuring the `stdout` and `stderr` decoding, and supports framing and log namespaces. The implementation tries to be efficient, correct and resilient, and comes with both integration and mocked unit tests to cover most edge cases. Signed-off-by: Jean Mertz <git@jeanmertz.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey all 👋
For a project I am working on, I had a need for a transform similar to the
exec-source, which supports converting events in a low-throughput environment using an external command-line tool. I figured you all might be interested in this new transform. If not, I'm happy to keep using this in my own fork.Summary
Add a new transform that pipes events through external processes via stdin/stdout, enabling integration with any command-line tool.
Supports three operating modes:
This transform is modeled after the
execsource, but with some differences:Per Eventrun-mode, which spawns a new process for each event with concurrency control.stderroutput.stdoutandstderrdecoding, and supports framing and log namespaces.The implementation tries to be efficient, correct and resilient, and comes with both integration and mocked unit tests to cover most edge cases.
Vector configuration
How did you test this PR?
Change Type
Is this a breaking change?
Does this PR include user facing changes?
no-changeloglabel to this PR.References
sockettransform #1572