<!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>----- Original message -----
<br>&gt; Hi,
<br>&gt; 
<br>&gt; Below is my setup (see the config details). Issue i am facing is :
<br>&gt; 
<br>&gt; Lets say on central servers apache logs are collected till 2:00 PM for
<br>&gt; current date. Incase if i delete the log file on central server, a new
<br>&gt; file gets created and starts collecting the log after the delete time ie
<br>&gt; 2:00 PM. What i want to achieve is that in such an event where the log
<br>&gt; files gets deleted.. the new log-file will collect the log from the
<br>&gt; beginning of the day ie 12:00 AM. Is this possible ?
<br>
<br>no, syslog-ng is not file based, it is tailing logfiles and reads messages one by one. the server stores these messages in its configured destinations. the source and destination files are only connected through the configurations of the client and server. thus syslog-ng has no way of knowing whether a file was deleted or not.
<br>
<br>using rsync might be an option though.<br></p>
</body>
</html>