<!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>> Hello.
<br>> I'm using a very simple configuration on Ubuntu 12.04.2 LTS
<br>> @version: 3.3
<br>> @include "scl.conf"
<br>> source from-network { udp(ip("0.0.0.0") port(514)); };
<br>> destination local-file {
<br>> file("/var/log/temporary-encrypted/$YEAR-$MONTH-$DAY.log"); }; log {
<br>> source(from-network); destination(local-file);};
<br>>
<br>> Log on a destination file using date as filename.
<br>> I need to close this file when date changes at 00:00. How?
<br>> Thanks.
<br>> Andrea
<br>>  
<br><br></p>
</body>
</html>