AIX syslogd implementation of SYSLOG has built-in log rotation capabilities that are specified with optional fields after the log destination:
facility-level destination rotate size s files n time t compress archive path
For example:
Strangely enough AIX does not provide any default syslog.conf at all. But for syslogd activation it needs to exist.*.emerg;*.alert;*.crit;*.warning /var/adm/messages rotate files 4 time 7d compress
This is probably the most clean solution of the problem in comparison with Linux or Solaris solutions. As you can see in addition to rotation you can also specify compression
Nessun commento:
Posta un commento