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
On Wed, Jan 15, 2003 at 11:45:43PM -0200, Sergio A Lima Jr. wrote:
how to for determine log files rotate in the syslog-ng?
Syslog-ng doesn't rotate logs, not in the way I think you mean it. It is a feature of syslog-ng that it can be configured to log each day's messages in a different file, but that's not rotation, that's building up log archives. Different OS's come with different mechanisms to rotate logs, meaning you move the current logfiles to a new file, and reload or restart the syslog daemon in order to write to new files. Linux usually uses "logrotate", Solaris has a script called "newsyslog", and I don't have much idea about others. You'll need to ask in a forum specific to your OS if you need more than that. -- Nate Campi http://www.campin.net "Get your facts first, and then you can distort them as much as you please." - Samuel Clemens
participants (2)
-
Nate Campi
-
Sergio A Lima Jr.