<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="generator" content="Osso Notes">
    <title></title></head>
<body>
<p>hi,
<br>
<br>right now, you can do that only via sending a sighup to syslog-ng at that time.
<br>
<br>syslog-ng will close that file after time-reap() seconds once no messages are received there.
<br>
<br>time-reap() defaults to 60 seconds iirc.
<br>
<br>hope this helps.
<br>
<br>----- Original message -----
<br>&gt; Hello.
<br>&gt; I'm using a very simple configuration on Ubuntu 12.04.2 LTS
<br>&gt; @version: 3.3
<br>&gt; @include "scl.conf"
<br>&gt; source from-network { udp(ip("0.0.0.0") port(514)); };
<br>&gt; destination local-file {
<br>&gt; file("/var/log/temporary-encrypted/$YEAR-$MONTH-$DAY.log"); }; log {
<br>&gt; source(from-network); destination(local-file);};
<br>&gt; 
<br>&gt; Log on a destination file using date as filename.
<br>&gt; I need to close this file when date changes at 00:00. How?
<br>&gt; Thanks.
<br>&gt; Andrea
<br>&gt;&nbsp; &#32;
<br><br></p>
</body>
</html>