Repository navigation
feat(splunk_hec source): support second-stage framing and decoding #25312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
thomasqueirozb
merged 37 commits into
master
from
splunk-hec-second-stage-decoder-framing
May 7, 2026
Merged
Changes from 25 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
805e0d4
feat(splunk_hec source): support second-stage framing and decoding
thomasqueirozb 4034cd0
preserve original send_event/ack ordering when no decoder is set
thomasqueirozb ad824b1
Add authors to changelog
thomasqueirozb 530acc0
Format
thomasqueirozb c6e4974
refactor(splunk_hec source): split codec config into per-endpoint eve…
thomasqueirozb e86b093
fix(splunk_hec source): include legacy log shape in schema when only …
thomasqueirozb 5454d2d
address review: schema InsertIfEmpty parity + apply splunk_hec_token …
thomasqueirozb ff17286
feat(codecs): add Deserializer::parse_with_secrets and Decoder::with_…
thomasqueirozb a12389d
refactor: move metadata_template to VrlDeserializer only; no Decoder/…
thomasqueirozb ac4873b
feat(codecs): add inject_metadata to VRL decoder; wire up in exec source
thomasqueirozb aecddcf
fix(exec source): preserve VRL-written metadata; add DeserializerConf…
thomasqueirozb 3f04870
fmt
thomasqueirozb bba7ae5
Add authors line to changelog
thomasqueirozb bdc4914
merge: bring in VRL decoder inject_metadata mechanism from decoder-me…
thomasqueirozb 4777a95
refactor(codecs): remove inject_metadata flag; with_metadata_template…
thomasqueirozb 08bb10b
feat(splunk_hec source): inject envelope metadata into VRL decoder be…
thomasqueirozb 55dda8d
fmt
thomasqueirozb 693bf61
fix(splunk_hec source): use InsertIfEmpty semantics for Vector-namesp…
thomasqueirozb 113fc11
refactor: replace get-then-insert with log.try_insert for metadata In…
thomasqueirozb fa2199a
fix(splunk_hec source): reject empty event field in decoder path; ski…
thomasqueirozb 54c512e
fix(splunk_hec source): only write splunk_hec.timestamp for /event de…
thomasqueirozb c993ed8
test(splunk_hec source): add VRL decoder end-to-end test covering env…
thomasqueirozb 253b958
fix fmt + clippy
thomasqueirozb 8094a7e
fmt
thomasqueirozb 8a34522
fix(splunk_hec source): per-endpoint schema strategy without metadata…
thomasqueirozb e1f25c9
fix(splunk_hec source): apply extractors before fields in decoder pat…
thomasqueirozb 095a52b
Avoid roundtrip json parsing during decoding
thomasqueirozb ea6e391
Fix stale documentation
thomasqueirozb 657a791
Fix clippy by building DecodePayloadContext
thomasqueirozb 17bfef1
refactor(splunk_hec source): extract validate_event_field and use raw…
thomasqueirozb 5987d6f
Update documentation
thomasqueirozb 27d87ea
Address docs review
thomasqueirozb 7bd36cb
fix(splunk_hec source): pass string events as raw bytes to decoder
thomasqueirozb 50460ce
refactor(splunk_hec source): extract register_ack helper to reduce in…
thomasqueirozb 9c4e21f
EndpointCodecConfig -> CodecConfig
thomasqueirozb 8cd9c59
simplify docs
thomasqueirozb 0bcb9f1
Remove VrlDeserializer doc comment from `with_metadata_template`
thomasqueirozb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| The `splunk_hec` source now accepts optional per-endpoint codec configuration via `event: { framing, decoding }` and `raw: { framing, decoding }`. When `decoding` is set on an endpoint, Vector applies a second decoding pass after the HEC envelope is parsed: on `/services/collector/event` the envelope's `event` field is fed through the codec (string contents are passed as raw bytes; objects, arrays, and other JSON values are JSON-serialized first to preserve shape), and on `/services/collector/raw` the request body is fed through the codec directly. A single payload can fan out to multiple events. Decoder-produced fields win on conflict with HEC envelope metadata, and decode failures do not surface to the Splunk client. Each endpoint is configured independently; when neither endpoint is configured the source preserves its existing behavior unchanged. | ||
|
|
||
| authors: thomasqueirozb | ||
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.