Open pallix opened 5 years ago
It makes the actual not compatible with [RFC 3164]():
The HOSTNAME field will contain only the hostname, the IPv4 address, or the IPv6 address of the originator of the message. The preferred value is the hostname. If the hostname is used, the HOSTNAME field MUST contain the hostname of the device as specified in STD 13
The hostname should be specified.
When logging with udp on a syslog server,
localhost
is used as the hostname in the log instead of the actual machine name. Example of invalid host name:This is due to the
pre
variable not using thehostname
(destructured as_hostname
) variable when formatting the output.