Saving Security Log to DB

From: Scott (anonymous_at_discussions.microsoft.com)
Date: 02/24/04


Date: Tue, 24 Feb 2004 09:03:35 -0800

The scripting website has an example of how to copy the
event logs to a db. I want to modify this and just copy
the security logs to a db. Below is the relevant portion
of that code:

Set colRetrievedEvents = objWMIService.ExecQuery _
("Select * from Win32_NTLogEvent")

To modify this for the Security logs, do I change the code
to:

Set colRetrievedEvents = objWMIService.ExecQuery _
("Select * from Win32_NTLogEvent Where Logfile _
='Security'")

I would greatly appreciate any input on this subject.

Thanks,

Scott



Relevant Pages

  • Re: Saving Security Log to DB
    ... >event logs to a db. ... I want to modify this and just copy ... Below is the relevant portion ... >To modify this for the Security logs, ...
    (microsoft.public.scripting.vbscript)
  • Re: Capturing interactive logons from Security Event Log
    ... reading the event logs in... ... Our security logs are large and processing that query is time consuming. ...
    (microsoft.public.scripting.vbscript)
  • Tracking the security logs for group attributes modifications
    ... I want to track the security logs for the modifications ... Hide/Unhide group memberships. ... changing the owner of the groups ... time with the event logs. ...
    (microsoft.public.win2000.active_directory)
  • Tracking the security logs
    ... I want to track the security logs for the modifications ... Hide/Unhide group memberships. ... changing the owner of the groups ... time with the event logs. ...
    (microsoft.public.win2000.active_directory)
  • Tracking the security logs
    ... I want to track the security logs for the modifications ... Hide/Unhide group memberships. ... changing the owner of the groups ... time with the event logs. ...
    (microsoft.public.exchange2000.win2000)