#1143779 runit: svlogd could benefit from regex filtering

Package:
runit
Source:
runit
Description:
system-wide service supervision
Submitter:
Andrew Bower
Date:
2026-08-07 15:27:01 UTC
Severity:
normal
Tags:
#1143779#5
Date:
2026-08-06 07:59:41 UTC
From:
To:
I want to filter log lines with a regex. It's great that svlogd can be used to
filter output because it's better for runit to supervise the main process and
not a wrapper and it's handy to use the standard log script and just supply an
svlogd config file.

It would be an upstream feature request of course, but what do you think? Would
it enrich the Debian integration?

Thanks!

#1143779#10
Date:
2026-08-07 05:04:46 UTC
From:
To:
Hi Andrew,

The svlogd(8) config file has support for both processors and patterns.  Is
what you are suggesting merely an extra example log/config file to be shipped
with the package?

HTH!

Bye,

Joost

#1143779#15
Date:
2026-08-07 15:23:52 UTC
From:
To:
Hi Andrew,

On Thu, 06 Aug 2026 09:59:41 +0200 Andrew Bower <andrew@bower.uk> wrote:

So far (my sample is ~100 runscripts) I added a log filter to a couple
of runscripts, usually to reduce verbosity like in [1], and I could do
it without any regex.
So I don't have an example where regex would be needed; if you have
one, I encourage you to open an issue upstream [2] to get feedback on
whether such feature would be accepted.

Joost,

regex are not supported in pattern though; one can feed 'current' to a
processor script with regex, but as far as I understand, the
processor runs only on file rotation so it can't filter what is
written to 'current'.

Best,
Lorenzo


[1]
https://salsa.debian.org/debian/runit-services/-/merge_requests/31/diffs#diff-content-e01adf153aded083811e1c3953ad049f43cc64fc

[2] https://github.com/g-pape/runit/

#1143779#20
Date:
2026-08-07 15:23:52 UTC
From:
To:
Hi Andrew,

On Thu, 06 Aug 2026 09:59:41 +0200 Andrew Bower <andrew@bower.uk> wrote:

So far (my sample is ~100 runscripts) I added a log filter to a couple
of runscripts, usually to reduce verbosity like in [1], and I could do
it without any regex.
So I don't have an example where regex would be needed; if you have
one, I encourage you to open an issue upstream [2] to get feedback on
whether such feature would be accepted.

Joost,

regex are not supported in pattern though; one can feed 'current' to a
processor script with regex, but as far as I understand, the
processor runs only on file rotation so it can't filter what is
written to 'current'.

Best,
Lorenzo


[1]
https://salsa.debian.org/debian/runit-services/-/merge_requests/31/diffs#diff-content-e01adf153aded083811e1c3953ad049f43cc64fc

[2] https://github.com/g-pape/runit/