Logrotate

 Logrotate è avviato tramite cron.daily per assicurare che i log file non crescano troppo.

Il file di configurazione è

/etc/logrotate.conf

# see "man logrotate" for details

# rotate log files weekly

weekly

# keep 4 weeks worth of backlogs

rotate 4

# create new (empty) log files after rotating old ones

create

# use date as a suffix of the rotated file

dateext

# uncomment this if you want your log files compressed

#compress

# RPM packages drop log rotation information into this directory

include /etc/logrotate.d

Lo script dice che i log vengono creati settimanalmente e hanno un valore di 4 settimane. Dopo il backup dei vecchi log, viene creato un nuovo file vuoto. I file di backup hanno come suffisso dataext.

I servizi soggetti a logrotate possono essere configurati sotto la direcroty

/etc/logrotate.d/


Post popolari in questo blog

Create e Drop Pluggable Database

ORA-12154: TNS: il listener non è attualmente a conoscenza del servizio richiesto nel descrittore di connessione