Skip to content

Commit

Permalink
Actually allow log namespacing when using the syslog source.
Browse files Browse the repository at this point in the history
  • Loading branch information
apollo13 committed Dec 21, 2024
1 parent 029a2ff commit e7194ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sources/syslog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ impl SourceConfig for SyslogConfig {
Deserializer::Syslog(
SyslogDeserializerConfig::from_source(SyslogConfig::NAME).build(),
),
);
).with_log_namespace(log_namespace);

build_unix_stream_source(
path,
Expand Down Expand Up @@ -293,7 +293,7 @@ impl TcpSource for SyslogTcpSource {
Decoder::new(
Framer::OctetCounting(OctetCountingDecoder::new_with_max_length(self.max_length)),
Deserializer::Syslog(SyslogDeserializerConfig::from_source(SyslogConfig::NAME).build()),
)
).with_log_namespace(self.log_namespace)
}

fn handle_events(&self, events: &mut [Event], host: SocketAddr) {
Expand Down Expand Up @@ -347,7 +347,7 @@ pub fn udp(
Deserializer::Syslog(
SyslogDeserializerConfig::from_source(SyslogConfig::NAME).build(),
),
),
).with_log_namespace(log_namespace),
)
.take_until(shutdown)
.filter_map(|frame| {
Expand Down

0 comments on commit e7194ff

Please sign in to comment.