Hello, Is it fine to apply follow_freq(1) on a static file (not tailing one) Or One should use follow_freq() only on a tailing file? Thanks and regards, Hidayath
On Wed, 2011-03-09 at 12:43 +0530, Hidayath Basha wrote:
Hello,
Is it fine to apply follow_freq(1) on a static file (not tailing one) Or One should use follow_freq() only on a tailing file?
well, a follow_freq() value larger than zero will start polling the file for changes every now and then. if a file is static, such polling is not needed, but should not hurt, and at least syslog-ng will notice if it changed anyway. In follow_freq(0) mode, no such polling is made, syslog-ng will stop reading from the given file if EOF is reached. Such behaviour is meant to be used for device files and named pipes. The default should be 1 for regular files and non-zero for others. -- Bazsi
participants (2)
-
Balazs Scheidler
-
Hidayath Basha