Login | |
|
 |
RE: pars event log for event typer = error email event ... - 3/24/2008 3:40:48 PM
|
|
 |
|
| |
dm_4ever
Posts: 2641
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
Filtering the returned event entries just requires you modifying the query. In the example you posted it would be this line you need to modify: "Select * from Win32_NTLogEvent Where Logfile =" & strLogType Add an "and" and then EventType='123' or whatever you're looking for...you can continue to filter in this manner. Is this being executed on WinXP or better?
_____________________________
dm_4ever My philosophy: K.I.S.S - Keep It Simple Stupid Read Me: http://www.visualbasicscript.com/m_24727/tm.htm Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: pars event log for event typer = error email event ... - 3/26/2008 1:37:19 PM
|
|
 |
|
| |
TomRiddle
Posts: 188
Score: 4
Joined: 2/7/2008
Status: offline
|
That is exactly the same bit I am working on in my latest script. (An event log reading script like this one) I am having problems with it because it only checks the date if the event passes through the query string. Ideally being able to put the date in to the query string as a filter would solve my problem. I will post my script when i have got it completely working
|
|
| |
|
|
|
 |
RE: pars event log for event typer = error email event ... - 3/26/2008 9:00:45 PM
|
|
 |
|
| |
TomRiddle
Posts: 188
Score: 4
Joined: 2/7/2008
Status: offline
|
Thanks for that UTC date conversion script dm, it will be handy to know how to convert that way.
|
|
| |
|
|
|
 |
RE: pars event log for event typer = error email event ... - 3/30/2008 9:34:48 PM
|
|
 |
|
| |
TomRiddle
Posts: 188
Score: 4
Joined: 2/7/2008
Status: offline
|
StdToUTCTime is a function and you are not passing anything to it in that line Edit Note, dm_forever and I posted two different examples.
< Message edited by TomRiddle -- 3/30/2008 9:37:42 PM >
|
|
| |
|
|
|
 |
RE: pars event log for event typer = error email event ... - 4/3/2008 12:23:45 AM
|
|
 |
|
| |
ebgreen
Posts: 4971
Score: 31
Joined: 7/12/2005
Status: offline
|
Ok, there are some issues here around the file creation. I don't know that they are causing your problem, bu | | |