On Tue, 14 Mar 2023 10:19:19 -0400 Simon Deziel <si...@sdeziel.info> wrote: > On 2023-03-14 08:49, Richard Lewis wrote: > > On Mon, 13 Mar 2023, 12:36 Simon Deziel, <si...@sdeziel.info> wrote: > > > >> egrep still consumes a lot of memory for me. A workaround I've been > >> using is to add this to /etc/logcheck/logcheck.conf: > >> > >> # XXX: prevent grep from using incredible amounts of RAM (>3G RSS) > >> # this also speeds up grep a lot > >> export LC_ALL=C
Returning to this after a while: I think the above -- setting LC_ALL in logcheck.conf is probably the best solution available. So we might even close this bug, as im not sure what else logcheck can do? > > interesting - does using C.UTF-8 have the same effect? > > tl; dr: no :/ Thanks for testing. I suppose the underlying issue is in grep. I hope that later versions of logcheck will allow to swap grep for ag or ripgrep -- but they are faster at the cost of more RAM, at least sometimes