[syslog-ng]rotate files

Sergio A Lima Jr. sergioajr@ig.com.br
15 Jan 2003 23:45:43 -0200


Hello all,

how to for determine log files rotate in the syslog-ng?

Below, this syslog-ng.conf:

options { sync (0);
         time_reopen (10);
         log_fifo_size (1000);
         long_hostnames (off);
         use_dns (yes);
         use_fqdn (no);
         create_dirs (no);
         keep_hostname (yes);
        };

source stdlog { unix-stream("/dev/log"); };

destination d_cons { file("/dev/console"); };
destination d_mesg { file("/var/log/messages"); };
destination d_auth { file("/var/log/secure"); };
destination d_mail { file("/var/log/maillog"); };
destination d_spol { file("/var/log/spooler"); };
destination d_boot { file("/var/log/boot.log"); };
destination d_iptl { file("/var/log/filtering.log"); };
destination d_mlal { usertty("*"); };

filter f_filter1        { facility(kern); };
filter f_filter2        { level(info) or
                        facility(mail) or facility(authpriv); };
filter f_filter3        { facility(authpriv); };
filter f_filter4        { facility(mail); };
filter f_filter5        { level(emerg); };
filter f_filter6        { facility(uucp) or
                        facility(news) and level(crit); };
filter f_filter7        { facility(mail) and not match ("i[pP]op3"); };
filter f_filter8        { facility(mail) and not match ("ipop3d"); };
filter f_filter9        { facility(kern) and match ("Bad packet from
localnet"); };

log { source(stdlog); filter(f_filter1); destination(d_cons); };
log { source(stdlog); filter(f_filter2); destination(d_mesg); };
log { source(stdlog); filter(f_filter3); destination(d_auth); };
log { source(stdlog); filter(f_filter4); destination(d_mail); };
log { source(stdlog); filter(f_filter5); destination(d_mlal); };
log { source(stdlog); filter(f_filter6); destination(d_spol); };
log { source(stdlog); filter(f_filter9); destination(d_iptl); };


thank's for the help me!!!

[]'s

Sergio Lima