@@ -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
0 commit comments