Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recommendations for checking logfiles

Status
Not open for further replies.

CameronY

IS-IT--Management
Sep 2, 2017
1
0
0
AU
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top