Feature Requests

Agent should be able to monitor log files rotated to different directory

As agent does not look for recursive directories in a directory for monitoring archived files, there is a chance that logs are lost during file rotation.


How should we handle if the rotated file is moved to different folder in the same directory?


In our environment, the log file is rotated and moved to a new folder(Archive) in the same logs folder. So, in this case how can we ensure that the logs are not lost during file rotation.


I think if a rotated file gets named something other than "fileName.1" (Ex: Test.log.1), agent will not pick that file. But in our case the archive file starts from zero not from numeric 1(0.Test.log or Test.log.0)


Current Log file: E:\Logs\Test.log

Archived Files: E:\Logs\Archive\0.Test.log, E:\Logs\Archive\1.Test.log ….etc.,

Idea No. 246