[syslog-ng] follow_freq() On A Static File

Balazs Scheidler bazsi at balabit.hu
Wed Mar 9 18:26:15 CET 2011


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



More information about the syslog-ng mailing list