On Wed, 2023-05-24 at 15:19 +0200, Michael Biebl wrote: > Am 24.05.23 um 14:52 schrieb Christoph Anton Mitterer: > > On Wed, 2023-05-24 at 09:47 +0200, Michael Biebl wrote: > > > > The following would be at least a bit more restrictive: > > > > /var/log/mail.{info,warn,err} /var/log/lpr.log > > > > /var/log/{messages,debug,daemon.log} > > > > /var/log/mail.{info,warn,err}.* /var/log/lpr.log.* > > > > /var/log/{messages,debug,daemon.log}.* > > > > > > > > not perfect though, cause it could still select unrelated files > > > > > > It only matches compressed files though > > > > Mine? That I don't understand... I have the ones with just the name > > of > > the logfile itself... and then .*, which should match the non- > > compressed .0, .1, etc. as any .0.xz, .1.xz, etc.? > > Sorry, I meant: It (the expresssion like /var/log/lpr.log.*) only > matches rotated files, but not the actual log file itself.
But for that I would have had both: /var/log/mail.{info,warn,err} /var/log/lpr.log /var/log/{messages,debug,daemon.log} /var/log/mail.{info,warn,err}.* /var/log/lpr.log.* /var/log/{messages,debug,daemon.log}.* Anyway... if everyone agrees that we should leave out the rotated files and leave that up to the user (which a note bout that being the case in the release notes)... it would IMO be safer. I could make a PR if desired so. Cheers, Chris.