Hi all,

I have a problem using a select statement when querying event logs. I use
the following statement:

------
Set colLoggedEvents = objWMIService.ExecQuery _
("Select * from Win32_NTLogEvent Where (LogFile = 'Security' And
EventType = '5')" & _
"Or (LogFile = 'System' And EventType = '1')")
------

When executing I only get entries from the Security event log.

Before I tried this statement:

------
Set colLoggedEvents = objWMIService.ExecQuery _
("Select * from Win32_NTLogEvent Where (EventType = 1 Or EventType =
5)")
------

When executing that one I only receive entries from the Application log,
which is - I guess - the first one that is analyzed by the script.

So please could someone tell me if and how I could get entries from multiple
event logs with one query?

TIA,
The Kirschi