When setup to forward syslog information to another server, syslog does not include the hostname in the information. Both, rfc3164, entitled "The BSD syslog Protocol," and rfc5424, entitled "The Syslog Protocol," require a value be passed for the hostname. We also tested a FreeBSD 8.0 and a 9.2, they both include the same issue. Example (from tcpdump): (1) Current FreeBSD (incorrect) Packet: 15:18:31.963184 IP 192.168.164.27.514 > 192.168.165.10.514: SYSLOG auth.info, length: 79 E..k....@.,;....... .....WE.<38>Oct 7 15:18:48 sshd[60620]: Connection closed by 192.168.164.124 [preauth] (2) Expected Packet: 15:18:31.963184 IP 192.168.164.27.514 > 192.168.165.10.514: SYSLOG auth.info, length: 79 E..k....@.,;....... .....WE.<38>Oct 7 15:18:48 servername sshd[60620]: Connection closed by 192.168.164.124 [preauth] References http://tools.ietf.org/html/rfc3164 http://tools.ietf.org/html/rfc5424
Waiting for reply.
Still waiting for reply
well, someone will have to look at that In the meantime you can try to install a 3rd party syslog from ports/packages.
probably will need a new argument to not break existing syslog behaviour.
What's the status on this one?
Back to the pool, since I don't active work with syslogd. Sorry for keeping the bug for a long time ignored.
FYI; This bug has also been discussed on the pfsense board: https://redmine.pfsense.org/issues/7020
It would be really nice to see this solved. Standard syslog patterns don't match because of this. Tx.
See also related #220246, which has a patch.
bug200933 seems fixed bug220246, is this issue still existing?
(In reply to Li-Wen Hsu from comment #11) There are two separate issues: one for a log server receiving new-format log messages, and one for a client transmitting them to a remote server. The fix for the latter was merged to 12-STABLE after the cutoff for 12.1; I haven't attempted to backport it so I can't verify that that change does the trick.
(In reply to Garrett Wollman from comment #12) I take that back, the -O functionality was in 12.1; I was confused by a system which had both compressed and (outdated) uncompressed manual pages.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220246 has an updated patch for latest syslogd.
^Triage: now see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220246 .