The xm_filelist module can be used to implement file-based blacklisting or whitelisting. This extension module provides two functions, contains() and matches(), that can be invoked to check whether the string argument is present in the file. This can be a username, IP address, or similar. Each referenced file is cached in memory and any modifications are automatically loaded without the need to reload NXLog.
The mandatory File directive specifies the name of the file that will be read into memory. This directive may be specified more than once if multiple files need to be operated on.
This optional directive specifies the frequency with which the files are checked for modifications, in seconds. The default value is
5seconds. File checks are disabled if CheckInterval is set to
The following functions are exported by xm_filelist.