Package: bsdutils
Version: 1:2.20.1-5.3

Hi,

when logging to a remote server with the logger tool (see Bug #705215 to
make it work in the first place), the message format does not seem to adhere
to RFC 3164 (which I guess is what logger wants to produce). The RFC states
that the HEADER part 'contains a timestamp and an indication of the
hostname or IP address of the device'. The message that logger creates is
missing the hostname part. Instead, the timestamp is immediately followed by
the MSG part (which itself starts with the TAG field):

--------------
hostA> logger -n hostB -P 6543 -p local0.info -t mytag 'just a test'

hostB> nc -u -l -p 6543
<134>Apr 11 14:07:56 mytag: just a test
--------------

My understanding is that the message should look like this instead:
  <134>Apr 11 14:07:56 hostA mytag: just a test


When logging to rsyslogd, the message actually works without the hostname
field; rsyslog seems to do a reverse lookup on the originating ip address
and fill that in. I can also fake the hostname field by using
-t 'myhost mytag'.

-- 
Frank Thilo - th...@unix-ag.org        IRC: Chestal


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to