Showing results for Logs and monitoring - Scripting Blog [archived]

Feb 27, 2007
Post comments count0
Post likes count0

How Can I Monitor Event Log Messages for Specific Words?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I monitor event log messages for a specific word or phrase?-- GH Hey, GH. You know, now that the 2007 Scripting Games are over (have we mentioned that the 2008 Games are just a year away?) it’s time for the Scripting Guys to rejoin the real world. Before we answer your question, however, could you give us a second to ...

Scripting Guy!VBScriptLogs and monitoring
Feb 9, 2006
Post comments count0
Post likes count0

How Can I Count the Number of Times a Word Appears in a Log File?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I count the number of times the word Failure appears in a log file? There’s one catch, though: the log file simply writes its events one after another, creating one big, giant line of text.-- FS Hey, FS. According to the rest of your email, your log file looks something like this:Failure 2/7/2006 8:25 AM Failure 2/7/2...

Scripting Guy!scripting techniquesVBScript
Jan 31, 2006
Post comments count0
Post likes count0

How Can I Retrieve Information About the Latest Event Added to an Event Log?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I retrieve information about the latest event added to an event log?-- HG Hey, HG. You know, it seems like only yesterday that someone was asking us how they could find the oldest event in an event log. And we remember how we told them that - oh, right: it was only yesterday, wasn’t it? Well, then we won’t waste any t...

Scripting Guy!VBScriptLogs and monitoring
Jan 30, 2006
Post comments count0
Post likes count0

How Can I Find the Date of the Oldest Event in an Event Log?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I find the date of the oldest event in an event log?-- JL Hey, JL. You know, you just had to make a reference to “old” in your question, didn’t you? Just today one of the Scripting Guys received a letter from the American Association of Retired Persons (AARP). Although the letter acknowledged that this Scripting Guy w...

Scripting Guy!scripting techniquesVBScript
Oct 3, 2005
Post comments count0
Post likes count0

How Can I List All the Files in a Folder, Ordered By Creation Date?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I list all the files in a folder, ordered by creation date?-- CL Hey, CL. You know, if we were ambitious and hard-working, we’d sit down and write you a script that uses WMI to return all the files in a folder. That script would grab information about all those files and store that data in a disconnected recordset. We...

Scripting Guy!VBScriptstorage