feat(new transform): add stdio transform
#24547
Open
+2,557
−16
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