also sprach David Lang <[email protected]> [2016-01-29 17:35 +1300]: > but the point was that the rsyslog dynamic file naming doesn't know the > difference between you using $$hour to generate the filename (which should > not go backwards) and $hostname, with which old values will show up again a > lot.
Yes, I understood this now. Thank you for your patience. Look, I even took the message on: https://github.com/rsyslog/rsyslog/issues/601#issuecomment-176568702 > I always want to have my logs compressed, and I can do better with an > external compression program than with the built-in compression (and I am > currently having problems when combinding compression with dynamic files), > and I've trained myself over the years to look in /var/log/oldlogs rather > than just /var/log for things :-) Rather than using a script with loops and stuff, I'd probably just resort to cron running something like the following: find /var/log/{sys,auth,mail} -type f -mtime +1 -exec xz -9e {} + This doesn't do your size-related sorting, but then again I am quite sure my /var/log will never fill up. Thanks a lot for all your feedback. -- @martinkrafft | http://madduck.net/ | http://two.sentenc.es/ infinite loop: see 'loop, infinite'. loop, infinite: see 'infinite loop'. spamtraps: [email protected]
digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)
_______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.

