The log file I wish to monitor for a specific text string "Backup" is not the type of log file that appends the new log information to the end of the file. Instead it creates a new log file each time with a similar name. The log file name changes each day and I do not have any control over them as to the name or locaton of where they are stored. The Log File monitor searches all the log files whose name begins with "L".So yesterdays log files will be L001, todays logfile will be L002 and so on with a unique time and date stamp for each file created. The path I use for the Log File Source is similar to: \ServerNameShareNameLogL.. Right now instead of searching the most recent log file for the word "Backup" which is what I would like, it searchs all the the log files in the directory for the word "Backup" so I end up with an email alert that returns a list of not only the current log file but all the other log files in the folder. Is it possible for the File Age Monitor I setup to detect when the date changes on any log file to trigger the Log File monitor that will detect the log file whose date has just changed? None of the other monitors available that I checked, seem to be able to detect when a file has changed, examine it and then perform an action based on the result of the examination.

Thank you for your help.

asked 23 Oct '13, 10:05

PAAdmin's gravatar image

PAAdmin
111
accept rate: 0%


Hi PAAdmin,

Nice user name! As far as using the Log File Monitor you will not be able to have it look at only the newest file. What you could do is to use the Execute Script monitor and then write you script to look for the newest file and then search it for the "Backup" text that you want to look for. In fact there are some samples at the bottom of the documentation page that you could use. You would have to mix two of samples to get what you are are looking for.

Thanks
Quinn

Please make sure to mark your questions accepted when you have your answer by clicking the gray check mark to the left of the answer.

link

answered 23 Oct '13, 12:01

Quinn's gravatar image

Quinn ♦♦
14.5k3925
accept rate: 35%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×81
×33
×17

Asked: 23 Oct '13, 10:05

Seen: 5,876 times

Last updated: 23 Oct '13, 12:01