Hallo,
[code]# Warning: This file is auto-generated and might be overwritten by
univention-config-registry.
Please edit the following file(s) instead:
Warnung: Diese Datei wurde automatisch generiert und kann durch
univention-config-registry überschrieben werden.
Bitte bearbeiten Sie an Stelle dessen die folgende(n) Datei(en):
/etc/univention/templates/files/etc/logrotate.d/univention-updater
/var/log/univention/updater.log {
weekly
rotate 12
create 640 root adm
compress
missingok
notifempty
}
/var/log/univention/actualise.log {
weekly
rotate 12
create 640 root adm
compress
missingok
notifempty
}
/var/log/univention/repository.log {
weekly
rotate 12
create 640 root adm
compress
missingok
notifempty
}
/var/log/univention/errata-updates.log {
weekly
rotate 12
create 640 root adm
compress
missingok
notifempty
}
[/code]
Als Admin, würde ich einfach die Dateien editieren, jedoch weiß ich nun aus Erfahrung, dass wenn ich /var/log/univention/appcenter.log ergänzen möchte, dass es beim nächstes Update wieder raus ist.
Im Handbuch unter der Rubrik Logdateien bzw. Container / Richtlinien, finde ich keine passende Lösung, wie ich nun richtig vorgehe.
Ebenso ist bei uns folgender Fehler:
[code]/etc/cron.daily/logrotate:
error: univention-s4-connector:11 duplicate log entry for /var/log/univention/connector-tracebacks.log
/etc/logrotate.d# grep -rl tracebacks .
./univention-s4-connector
./univention-ad-connector
[/code]
s. dazu auch: forge.univention.org/bugzilla/sh … i?id=38140
Wie ist nun das richtige Vorgehen?
- appcenter.log zu rotieren
- connector-tracebacks.log nur einmal vorkommen zu lassen
- /etc/logrotate.d/univention-updater zu optimieren
/var/log/univention/updater.log
/var/log/univention/errata-updates.log
/var/log/univention/repository.log
/var/log/univention/actualise.log {
weekly
rotate 12
create 640 root adm
compress
missingok
notifempty
}
- die Einträge updater, actualise, … /etc/univention/templates/files/etc/logrotate.d/univention-updater im Univention (UDM, UCR,…) zu finden
@%@UCRWARNING=# @%@
@!@
import univention.lib.ucrLogrotate
name = "updater"
settings = univention.lib.ucrLogrotate.getLogrotateConfig(name, configRegistry)
print "/var/log/univention/%s.log {" % name
for setting in settings.keys():
print "\t%s" % settings[setting]
print "}"
name = "actualise"
[...]
Danke.