Skip to content

UDP/RFC3164: Not capturing sender IP address? #86

@mfreeman451

Description

@mfreeman451

Was there a reason the UDP input for syslog doesn't store the sender's IP address?

it seems like we don't do anything with it but it could be added to the output record?

   79  let (length, _src) = match socket.recv_from(&mut buf) {
   80      Ok(res) => res,
   81      Err(_) => continue,
   82  };
   70  #[derive(Debug)]
   71  pub struct Record {
   72      pub ts: f64,
   73      pub hostname: String,
   74      pub facility: Option<u8>,
   75      pub severity: Option<u8>,
   76      pub appname: Option<String>,
   77      pub procid: Option<String>,
   78      pub msgid: Option<String>,
   79      pub msg: Option<String>,
   80      pub full_msg: Option<String>,
   81      pub sd: Option<Vec<StructuredData>>,
   82  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions