Considerations for a Large Number of Watch Directories
There are two considerations when watching a very large number of directories: scan time and log space. Sterling Connect:Direct® Integrated File Agent scans each watch directory, then waits for the time specified in the watch interval, then repeats the cycle. With a large number of watch directories, each scan takes more time.
To keep each log file at a manageable size yet still keep enough current log data, the logging system uses a a rolling file appender in the log4j2.properties file to control logging. The log4j2.properties file configures the maximum size a log file can grow to, and how many backup log files to keep. Multiplying these two settings will give you the maximum amount of disk space. Since there are three different logs, you would add the maximum disk space for each enabled log to get the maximum disk space for all Sterling Connect:Direct Integrated File Agent logging.