Hi Andrew, On Thu, 06 Aug 2026 09:59:41 +0200 Andrew Bower <[email protected]> wrote:
> Package: runit > Version: 2.3.1-4 > Severity: wishlist > Tags: upstream > > 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? 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, On Fri, 7 Aug 2026 07:04:46 +0200 Joost van Baal-Ilić <[email protected]> wrote: > Hi Andrew, > > The svlogd(8) config file has support for both processors and > patterns. 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/ > > Thanks! > > > -- System Information: > Distributor ID: Devuan > Description: Devuan GNU/Linux 7 (freia/ceres) > Release: 7 > Codename: freia ceres > Architecture: x86_64 > > Kernel: Linux 7.1.3+deb14-amd64 (SMP w/4 CPU threads; PREEMPT) > Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), > LANGUAGE=en_GB:en Shell: /bin/sh linked to /usr/bin/dash > Init: runit (via /run/runit.stopit) > LSM: AppArmor: enabled > > Versions of packages runit depends on: > ii libc6 2.42-17 > ii runit-helper 2.16.7 > ii sysuser-helper 1.6.0 > > Versions of packages runit recommends: > ii runit-init 2.3.1-4 > > Versions of packages runit suggests: > ii runit-services 0.13.0 > ii socklog 2.1.2+repack-3 > pn ucspi-unix <none> > ii xchpst 0.8.5-1 > ii zsh 5.9.2-1 > > -- no debconf information

