general | April 07, 2026

Matching multiple log files - Documentation for BMC Defender Agent for SAP 6.2

It might be the case (in certain applications) where no part of the log file name is known, or an entire folder of log files needs to be monitored. The Windows Agent program permits this through the use of a special MultiLog directive, that is similar to the LogFile directive (as described) except that this single directive can monitor up to fifty different log files.

The MultiLog directive arguments are identical to the LogFile arguments, except that the wildcard (furnished with the MultiLog directive) can match up to 50 different log files. The various parameters of the operation (such as UseFacility, UseSeverity, and MaxSizeChange) apply to all matched files.

MultiLog directive uses only one configuration file.

Note

This directive can potentially reduce the performance of a system that contains many log files that are rapidly updated.

When using the MultiLog directive, a new directory listing of the target folder is generated when the agent is re-initialized, and subsequently every 30 seconds of operation. (If a file is added to the target folder, it gets monitored within 30 seconds.)

This special directive might not be supported by all of the Remote Configuration options of the BMC Defender Server web interface, depending on the version of the BMC Defender Server program used. Contact BMC Support for more information.