Re: [syslog-ng] File source and flow-control question
Dear Bazsi, Attached you can find my configuration file, I used for extensive testing. I have used it as file-incremental transfer agent. Please, ignore Czech comments. Best Regards, Pavel -----Original Message----- Date: Sat, 01 Dec 2007 15:42:19 +0100 From: Balazs Scheidler <bazsi@balabit.hu> Subject: Re: [syslog-ng] File source and flow-control question To: Syslog-ng users' and developers' mailing list <syslog-ng@lists.balabit.hu> Message-ID: <1196520139.6678.0.camel@bzorp.balabit> Content-Type: text/plain On Fri, 2007-11-30 at 06:44 +0000, Behal, Pavel wrote:
Dear List Members,
I have found syslog-ng really valuable part of operating system, thanks to all. I would like to ask a flow-control related question:
I have tried to use it (2.0.5) also as a collector of events from some log text-files using the file source with follow-freq set. It is working fine. But I have realized, that in case of network problem, the syslog-ng process never stops reading the data. (Yes, this is normal.) It continuously follows the incremented data and everything above volume the of internal line buffer get lost. I hoped, this can be changed using the flow-control flag, but I think the flow-control flag does not affect the file source and it never blocks reading.
Is there any way, how to setup the syslog-ng to stop reading the followed source file when destination is unavailable and continue from last event send after reconnect? Thank you.
Hmm.. if flow-control is enabled, syslog-ng should stop reading data from all sources that feed data into the flow-controlled path. Can you post your configuration file? -- Bazsi
On Sun, 2007-12-02 at 13:05 +0000, Behal, Pavel wrote:
Dear Bazsi,
Attached you can find my configuration file, I used for extensive testing.
I have used it as file-incremental transfer agent. Please, ignore Czech comments.
And here's the fix. http://git.balabit.hu/?p=bazsi/syslog-ng-2.0.git;a=commit;h=0c40dc606321d611... -- Bazsi
participants (2)
-
Balazs Scheidler
-
Behal, Pavel