In RFC 3164 (bsd-format): The Domain Name MUST NOT be included in the HOSTNAME field.
In RFC 5424 (ietf-format): The HOSTNAME field SHOULD contain the hostname and the domain name of the originator in FQDN format.
Without these changes syslogd(8) uses trimdomain() for addresses received from socket by socklist_recv_sock() (via cvthname()) and addresses used by config filtering by readconfigfile() (via cfline()).
Also, RFC 5424 timestamp parsing has been optimized.