gwoe-antragspruefer/scripts/logrotate-gwoe.conf
Dotty Dotter 0fd8a72958 feat(#171): logrotate-Config fuer /var/log/gwoe-*.log
scripts/logrotate-gwoe.conf — wird bei sudo-Install zu
/etc/logrotate.d/gwoe kopiert.

Schema:
- weekly, rotate 8 (8 Wochen Historie)
- compress + delaycompress (letzte Rotation greppable)
- missingok + notifempty (Cron-Logs koennen ja leer sein)
- create 0644 dotty dotty (passt zur Permissions-Konvention der
  bestehenden gwoe-*.log)
- sharedscripts (zukunftssicher fuer postrotate-Hooks)

Install via sudo cp + sudo logrotate -d (Dry-Run), siehe Inline-
Doku im File. Kein Server-seitiger Auto-Install — root-Aktion
liegt beim Maintainer.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 02:04:17 +02:00

26 lines
868 B
Plaintext

# logrotate-Config fuer alle GWÖ-Antragspruefer-Cron-Logs (#171).
#
# Installation auf dem vserver (root-Privileges):
# sudo cp /opt/gwoe-antragspruefer-dev/scripts/logrotate-gwoe.conf \
# /etc/logrotate.d/gwoe
# sudo logrotate -d /etc/logrotate.d/gwoe # Dry-Run, prueft Syntax
# sudo logrotate /etc/logrotate.d/gwoe # Sofort-Test (optional)
#
# Tipps:
# - logrotate-Cron laeuft typischerweise einmal pro Tag (/etc/cron.daily/logrotate).
# - Bei "create"-Variante mit fester Owner-Zeile entfaellt die Frage,
# ob der Cron-User die Datei nach Rotation noch beschreiben darf.
# - "delaycompress" laesst die letzte rotation noch greppable, was bei
# Forensik nach Cron-Bug Gold wert ist.
/var/log/gwoe-*.log {
weekly
rotate 8
compress
delaycompress
missingok
notifempty
create 0644 dotty dotty
sharedscripts
}