pub struct SyslogForwardSection {
pub host: String,
pub facility: u8,
pub enterprise_number: u32,
}Expand description
[audit.forward.syslog] section.
Example:
[audit.forward.syslog]
host = "siem.internal:514"
facility = 1 # 1 = user-level (default)
enterprise_number = 99999 # your own IANA PEN; defaults to the doc/test PENFields§
§host: StringReceiver address (host:port). Mandatory.
facility: u8Syslog facility number (default 1 = user-level messages).
enterprise_number: u32IANA Private Enterprise Number used to build the syslog SD-ID
(sysknife@<enterprise_number>, see RFC 5424 §7.2.2).
Defaults to DOCUMENTATION_PEN, RFC 5612’s reserved
documentation/test PEN — see the warning comment on
format_rfc5424 in sysknife-daemon::audit_forward. Operators
forwarding into a regulated SIEM should set this to their own
assigned PEN; see SyslogForwardSection::validate.
Implementations§
Source§impl SyslogForwardSection
impl SyslogForwardSection
Sourcepub fn validate(&self) -> Result<(), String>
pub fn validate(&self) -> Result<(), String>
Reject an enterprise_number of 0, which is not a valid IANA PEN
(the registry’s enterprise-numbers file starts numbering at 1).
Called at config-parse time, alongside any facility validation.
Every other u32 value is accepted: IANA PENs are allocated
sequentially with no reserved upper gap, so any nonzero u32 is a
syntactically valid PEN even if it has not actually been assigned to
this operator.