| joerg | KotCzarny: indeed it seems the _only_ approach that works | 16:16 |
|---|---|---|
| KotCzarny | fun fact, unix/linux started as a 'do one thing, but do it perfect' | 16:18 |
| KotCzarny | in regard to utils | 16:18 |
| KotCzarny | so you can use those perfect building blocks to achieve what you need | 16:18 |
| KotCzarny | if one tool tries to do everything, it will be flawed | 16:19 |
| joerg | alternatively the equivalent `for f in /*/*/*/*.log; do [ "$f" < "$(date -d "now - $DAYStoEXPIRE" +"/%Y/%m/%d/$(basename $f)")" ] && ...` | 16:23 |
| KotCzarny | k.i.s.s. | 16:24 |
| joerg | well, find relies on mtime which _may_ get tampered with | 16:25 |
| KotCzarny | who would tamper with it? | 16:25 |
| joerg | my alternative aproach uses the explicit dirname timestamps that cronolog created | 16:25 |
| KotCzarny | mtime would only change if the files would be touched or modified | 16:26 |
| KotCzarny | not just renamed | 16:26 |
| joerg | yes | 16:26 |
| joerg | like, when they get compressed ;-D | 16:26 |
| KotCzarny | i think gzip has an option to preserve timestamp | 16:26 |
| joerg | hehehehehe | 16:27 |
| KotCzarny | even better, it's default | 16:27 |
| KotCzarny | ;) | 16:27 |
| joerg | cronolog is a POS | 16:27 |
| joerg | lacks half the functionality to make it a comprehensive tool | 16:28 |
| joerg | and for unclear reasons it fails to obey the configured "-S symlink2recentLOGfile" | 16:29 |
| joerg | apache is user wwwrun but it creates files root:root, nfc what's going on there. I feel like I lost all my *nix fu | 16:32 |
| KotCzarny | or just b0rken configs | 16:36 |
| joerg | well, /etc/apache2/sites-enabled/wiki.maemo.org_443 has: | 16:39 |
| joerg | ErrorLog "|/usr/bin/cronolog -S /var/log/apache2/mediawiki_https_error /var/log/apache2/%Y/%m/%d/mediawiki_https_error.log" | 16:39 |
| joerg | TransferLog "|/usr/bin/cronolog -S /var/log/apache2/mediawiki_https_transfer /var/log/apache2/%Y/%m/%d/mediawiki_https_access.log" | 16:39 |
| joerg | no such thing like a /var/log/apache2/mediawiki_https_error symlink there | 16:40 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!