[syslog-ng] rotating logs at 12:00 noon

Jesse Molina jesse at opendreams.net
Tue Mar 7 18:35:53 CET 2006


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 at adventity.com and delete this mail from your records.           

> _______________________________________________
> syslog-ng maillist  -  syslog-ng at 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 at opendreams.net
# Page = page-jesse at opendreams.net
# Cell = 1.602.323.7608
# Web  = http://www.opendreams.net/jesse/
 
 


More information about the syslog-ng mailing list