We have configured a File Monitor to collect data produced by one of our applications. The application produces one file each day, where the date is part of the file name (e.g. Log_YYMMDD.txt). The File Monitor is configured with Log_%y%m%d. txt as file name.
Thursday and friday the Monitoragent did a fine job delivering the data. On saturday and sunday our application did not produce any log file (because there was simply no events to be logged). On monday a new log file was produced but this data was not delivered to the central database!!!
Some details: We could see mondays log file locally, but its contents were not delivered. We then manually created a new file for saturday using a text editor. As effect, mondays events (but not our manually added saturdays events) was delivered to the central database. After this everything was back to normal, i.e. subsequent events were promptly delivered (but we expect only until the next weekend). Note: The MWAgent was NOT restarted.
Suspicions: The local MWAgent was stubbornly trying to open saturdays log file disregarding any newer files or changes of date.
Please provide us with more information on how the File Monitor works:
1) Is it necessary to produce a log file each day even if there is nothing to be reported?
2) Exactly how does the current date affect which file that is read? Is there some kind of "time window" for when a log file must be produced in order to be read by the MWAgent? E.g. why did saturdays data not appear? A concern here is that no data must be lost. e.g. if produced near midnight. Will the MWAgent stop reading yesterdays file exactly at 00:00:00?
3) What happens if the date/time is changed in the system? Isn't there a risk that large time changes will hang the file monitor in the way described above?
4) What happens the first time the MWAgent is started? Will the File Monitor read all previous files up to the current date? (Once again, why were saturdays events not delivered?)
We are using MWAgent version 2.2 (Professional Workstation). No license for 3.x.


