Skip to content

Commit 5987d6f

Browse files
Update documentation
1 parent 17bfef1 commit 5987d6f

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

src/sources/splunk_hec/mod.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,9 @@ pub struct SplunkConfig {
141141
/// Codec configuration applied to events received on `/services/collector/event`.
142142
///
143143
/// When `decoding` is set, Vector applies a second decoding pass after the HEC
144-
/// envelope is parsed: the envelope's `event` field is fed through the codec,
144+
/// envelope is parsed. The envelope's `event` value is fed through the codec,
145145
/// and a single envelope can fan out to multiple events. Decode failures are
146-
/// swallowed and do not return an error to the Splunk client. When unset, the
147-
/// endpoint preserves its existing behavior.
146+
/// swallowed and do not return an error to the Splunk client.
148147
///
149148
/// The VRL codec has access to HEC envelope metadata
150149
/// (host, sourcetype, channel, etc.) and the authentication token via
@@ -184,8 +183,9 @@ pub struct EndpointCodecConfig {
184183
/// Decoding configuration applied to the payload.
185184
///
186185
/// When unset, the endpoint preserves its existing per-endpoint default
187-
/// behavior. When set, the inner payload is run through `framing` + `decoding`
188-
/// and a single payload can fan out to multiple events.
186+
/// behavior. When set, the endpoint-selected payload is run through
187+
/// `framing` + `decoding` and a single payload can fan out to multiple
188+
/// events.
189189
#[configurable(derived)]
190190
#[configurable(metadata(docs::advanced))]
191191
#[serde(default)]
@@ -961,7 +961,8 @@ struct EventIterator<'de, R: JsonRead<'de>> {
961961
log_namespace: LogNamespace,
962962
/// handle to EventsReceived registry
963963
events_received: Registered<EventsReceived>,
964-
/// Optional second-stage decoder applied to the envelope payload.
964+
/// Optional second-stage decoder applied to the envelope payload after HEC
965+
/// envelope parsing.
965966
decoder: Option<Decoder>,
966967
}
967968

@@ -1483,7 +1484,7 @@ struct DecodePayloadContext<'a> {
14831484
splunk_hec_token: Option<&'a Arc<str>>,
14841485
}
14851486

1486-
/// Run a payload through the configured second-stage `framing` + `decoding` codec.
1487+
/// Run a payload through the configured `framing` + `decoding` codec.
14871488
///
14881489
/// Returns the decoded events along with a flag indicating whether any decode error
14891490
/// occurred. The shared `crate::sources::util::decode_message` helper swallows

website/cue/reference/components/sources/generated/splunk_hec.cue

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,9 @@ generated: components: sources: splunk_hec: configuration: {
7777
Codec configuration applied to events received on `/services/collector/event`.
7878
7979
When `decoding` is set, Vector applies a second decoding pass after the HEC
80-
envelope is parsed: the envelope's `event` field is fed through the codec,
80+
envelope is parsed. The envelope's `event` value is fed through the codec,
8181
and a single envelope can fan out to multiple events. Decode failures are
82-
swallowed and do not return an error to the Splunk client. When unset, the
83-
endpoint preserves its existing behavior.
82+
swallowed and do not return an error to the Splunk client.
8483
8584
The VRL codec has access to HEC envelope metadata
8685
(host, sourcetype, channel, etc.) and the authentication token via
@@ -94,8 +93,9 @@ generated: components: sources: splunk_hec: configuration: {
9493
Decoding configuration applied to the payload.
9594
9695
When unset, the endpoint preserves its existing per-endpoint default
97-
behavior. When set, the inner payload is run through `framing` + `decoding`
98-
and a single payload can fan out to multiple events.
96+
behavior. When set, the endpoint-selected payload is run through
97+
`framing` + `decoding` and a single payload can fan out to multiple
98+
events.
9999
"""
100100
required: false
101101
type: object: options: {
@@ -640,8 +640,9 @@ generated: components: sources: splunk_hec: configuration: {
640640
Decoding configuration applied to the payload.
641641
642642
When unset, the endpoint preserves its existing per-endpoint default
643-
behavior. When set, the inner payload is run through `framing` + `decoding`
644-
and a single payload can fan out to multiple events.
643+
behavior. When set, the endpoint-selected payload is run through
644+
`framing` + `decoding` and a single payload can fan out to multiple
645+
events.
645646
"""
646647
required: false
647648
type: object: options: {

0 commit comments

Comments
 (0)