Skip to content

Commit

Permalink
fix(syslog): Rename source_id -> source_ip (vectordotdev#16836)
Browse files Browse the repository at this point in the history
  • Loading branch information
zamazan4ik authored and jeremy-hanna committed Mar 20, 2023
1 parent 91b433e commit 9112c94
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 @@ -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(),
);
}
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 9112c94

Please sign in to comment.