Re: s6-log weirdness

From: Vallo Kallaste <kalts_at_estpak.ee>
Date: Fri, 4 Feb 2022 17:25:19 +0200

On Fri, Feb 04, 2022 at 02:06:02PM +0000, Laurent Bercot
<ska-supervision_at_skarnet.org> wrote:

> Hi Vallo,
>
> That's the difference between '!zstd -q' and '!zstd' -q ;)
>
> When -q isn't a part of your processor command, but a part of the
> s6-log command line, it is interpreted as a selection directive,
> and will filter anything that contains a 'q' character.

Yes, that part I noticed, but it didn't occur to me that that lone '-q'
was taken as selector... Well, I feel dumb as a doorbell :)
It's been a while since I last touched s6.

The reason for lone '-q' was that I seem unable to give '!zstd -q' as
one argument in the rsyslogd omprog module configuration:
action(type="omprog" binary="/usr/bin/env - /usr/bin/s6-log -q n30 s10000000 !zstd -q /var/log/test" template="...)

Why? https://github.com/systemd/systemd/pull/21183#issuecomment-959799146
Compressed=yes and all, oh well...

-- 
Vallo
Received on Fri Feb 04 2022 - 16:25:19 CET

This archive was generated by hypermail 2.4.0 : Fri Feb 04 2022 - 16:25:54 CET