Information: Forum is in read-only mode
For details and other support options see

File Monitor question

Support, Questions and Discussions on MonitorWare Agent

Moderator: alorbach

Google Ads

File Monitor question

Postby sysop » Thu Apr 05, 2007 6:46 pm

I need to monitor a directory full of xml log files which contain some text that I need to parse out and forward to a syslog server. The problem is, the application that creates these logs does so on a job by job basis, and each log file it creates it increments the log file name by one. For example, last night this application ran 4 jobs and wrote 4 log files to the directory with names like so:

00891.xml - job 1 result
00892.xml - job 2 result
00893.xml - job 3 result
00894.xml - job 4 result

and so on.

I need the MonitorWare Agent to constantly watch this directory and look for new files that are written, and then parse them for the text I need to forward. But I am having trouble configuring it to do this. Is it possible?

Thanks in advance.
Posts: 1
Joined: Thu Apr 05, 2007 6:36 pm

Postby mmeckelein » Mon Apr 30, 2007 9:54 am


Yes, this is possible. You have to configure a FileMonitor. In the "File and path name " field, use the following syntax:

Code: Select all

This will monitor the whole directory. Then use Filter Conditions to parse them for the text you need to forward.

Best regards,
Michael Meckelein
Adiscon Support
Posts: 176
Joined: Wed Mar 12, 2003 12:07 pm

Google Ads

Return to MonitorWare Agent

Who is online

Users browsing this forum: No registered users and 0 guests