rotating logs at 12:00 noon
Hi, I am new to syslog-ng. I am not a programmer, but configuration of syslog-ng feels like I programming something!!! Wish I could get over this soon!! Apart from normal logging operation, I use syslog-ng to log PIX firewall logs from the network. Following is the configuration file: <..snip..> filter f_11 { facility(local0) and level(debug..emerg); }; destination d_8 { file("/var/log/pix/SyslogCatchAll-$DAY-$MONTH-$YEAR.log" create_dirs(yes)); }; log { source(local); filter(f_11); destination(d_8); }; <../snip..> This would typically rotate the logs at 12:00 at midnight daily. But I need to rotate the logs at 12:00 noon daily. Is it possible to configure syslog-ng in this manner? How do I do it? I had unsuccessfully tried to use logrotate with the native syslog utility in Linux. Do I have to use logrotate here again? Thanks in Advance, Regards, Navin Jathan. Disclaimer: Information transmitted by this e-mail is proprietary to Adventity and/ or its Customers, intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at postmaster@adventity.com and delete this mail from your records.
You are right -- you will need to use logrotate. Syslog-ng does not rotate logs, though it can create and write to log files based on date, which can look like log rotation, but really isn't. Reinstall that logrotate package and configure it to rotate your logs. On Tue, Mar 07, 2006 at 12:50:17PM +0530, Navin Jathan wrote:
Hi,
I am new to syslog-ng. I am not a programmer, but configuration of syslog-ng feels like I programming something!!! Wish I could get over this soon!!
Apart from normal logging operation, I use syslog-ng to log PIX firewall logs from the network. Following is the configuration file:
<..snip..>
filter f_11 {
facility(local0) and level(debug..emerg);
};
destination d_8 {
file("/var/log/pix/SyslogCatchAll-$DAY-$MONTH-$YEAR.log" create_dirs(yes));
};
log { source(local); filter(f_11); destination(d_8); };
<../snip..>
This would typically rotate the logs at 12:00 at midnight daily.
But I need to rotate the logs at 12:00 noon daily. Is it possible to configure syslog-ng in this manner? How do I do it?
I had unsuccessfully tried to use logrotate with the native syslog utility in Linux. Do I have to use logrotate here again?
Thanks in Advance,
Regards,
Navin Jathan.
Disclaimer: Information transmitted by this e-mail is proprietary to Adventity and/ or its Customers, intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at postmaster@adventity.com and delete this mail from your records.
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
-- # Jesse Molina # Mail = jesse@opendreams.net # Page = page-jesse@opendreams.net # Cell = 1.602.323.7608 # Web = http://www.opendreams.net/jesse/
participants (2)
-
Jesse Molina
-
Navin Jathan