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!
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
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/
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/