Hi Everyone,
Have been asked if it is possible to use a VBScript to monitor the contents of a log file periodically looking for the words "Error: Out of memory".
Now currently the file gets rotated on a daily basis, but the file size presently ranges between 3-4 GB daily.
The requestor has indicated that they'd like to do this check at a minimum, every minute, but I've headed that idea off that just potentially to do a search might take a minute or two.
I'm trying to see if it is possible to 'tee' out the "Error: Out of memory" messages to a separate log file.
So is it possible to parse log files of this size searching the last x-minutes of activity for this "Error: Out of memory" message?
Is VBScript suitable to do this or should I be looking at another method to achieve this outcome.
FYI - I'm not a programmer or scripter, but do enjoy the odd bit of scripting here and there.
Any suggestions appreciated.
Cheers,
Cameron
Have been asked if it is possible to use a VBScript to monitor the contents of a log file periodically looking for the words "Error: Out of memory".
Now currently the file gets rotated on a daily basis, but the file size presently ranges between 3-4 GB daily.
The requestor has indicated that they'd like to do this check at a minimum, every minute, but I've headed that idea off that just potentially to do a search might take a minute or two.
I'm trying to see if it is possible to 'tee' out the "Error: Out of memory" messages to a separate log file.
So is it possible to parse log files of this size searching the last x-minutes of activity for this "Error: Out of memory" message?
Is VBScript suitable to do this or should I be looking at another method to achieve this outcome.
FYI - I'm not a programmer or scripter, but do enjoy the odd bit of scripting here and there.
Any suggestions appreciated.
Cheers,
Cameron