From 9112c94e410d068a89767cda474356c432a1b229 Mon Sep 17 00:00:00 2001 From: Alexander Zaitsev Date: Fri, 17 Mar 2023 15:21:49 +0300 Subject: [PATCH] fix(syslog): Rename source_id -> source_ip (#16836) --- src/sources/syslog.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sources/syslog.rs b/src/sources/syslog.rs index f4b96acfc74bc..96c5ef3fcff7e 100644 --- a/src/sources/syslog.rs +++ b/src/sources/syslog.rs @@ -394,8 +394,8 @@ fn enrich_syslog_event( log_namespace.insert_source_metadata( SyslogConfig::NAME, log, - Some(LegacyKey::Overwrite("source_id")), - path!("source_id"), + Some(LegacyKey::Overwrite("source_ip")), + path!("source_ip"), default_host.clone(), ); } @@ -1320,7 +1320,7 @@ mod test { fn from(e: Event) -> Self { let (value, _) = e.into_log().into_parts(); let mut fields = value.into_object().unwrap(); - fields.remove("source_id"); + fields.remove("source_ip"); Self { msgid: fields.remove("msgid").map(value_to_string).unwrap(),