[prev in list] [next in list] [prev in thread] [next in thread] 

List:       util-linux-ng
Subject:    Re: logger: should priority come before octet-count?
From:       Karel Zak <kzak () redhat ! com>
Date:       2023-12-12 11:00:49
Message-ID: 20231212110049.imirb33nx356ifua () ws ! net ! home
[Download RAW message or body]

On Mon, Dec 11, 2023 at 03:04:07PM -0600, Goldwyn Rodrigues wrote:
> Hi,
> 
> When providing --octet-count with --rfc5424, the message prefixes the
> message length on the message. This however comes before priority, and
> the syslog message looks like:
> 
> 120 <13>1 2023-12-11T14:22:08.433695-06:00 kora root - rsyslog_dbg [timeQuality \
> tzKnown="1" isSynced="0"] dummy goes to town

As described by RFC: https://datatracker.ietf.org/doc/html/rfc6587#section-3.4.1

I think --octet-count makes sense only in situations when used against server
that supports it (implements RFC6587 over TCP).

The octet count is used as a framing method to separate messages. IMHO
it has to be at the beginning.

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic