Re: Log rotation

Поиск
Список
Период
Сортировка
Искать
От
Gaetano Mendola
Тема
Re: Log rotation
Дата
Msg-id
008e01c1daf0$cd683790$5ce8fea9@GMENDOLA2
Список
Дерево обсуждения
Re: Log rotation Andre Schubert <andre.schubert@km3.de>
"Andre Schubert"  wrote:
> You can use multilog on linux.


Hi, I don't know what's multilog but I resolved my
problem in this way (general suggestions for all):

#File postgresql.conf

syslog = 2
syslog_facility = 'LOCAL0'
syslog_ident = 'postgres'


#File /etc/logrotate.d/postgres

/var/log/postgresql.log {
    compress
    rotate 5
    size=10000k
    errors mendola@bigfoot.com
    create 0664 postgres postgres
    daily
    postrotate
           /usr/bin/killall -HUP syslogd
    endscript
}


#In File syslog.conf
LOCAL0.*
/var/log/postgresql.log


Ciao
Gaetano

--
#exclude 
#include 
printf("\t\t\b\b\b\b\b\b");.
printf("\t\t\b\b\b\b\b\b");








В списке pgsql-admin по дате отправления
От: Marin Dimitrov
Дата:
Сообщение: Re: indexes separate from data
От: Nicholay P. Chuprynin
Дата:
Сообщение: INDEX issues
FAQ