Click here to get back home

Security Event Log

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Security Event Log Anthony LaMark 02-19-2007
`--> Re: Security Event Log Roger Abell [MV...02-22-2007
Get Chitika Premium
Posted by Anthony LaMark on February 19, 2007, 7:15 pm
Please log in for more thread options
Hi All,

I am logging certain events into the security event log by using
AuthzReportSecurityEvent. Everything is working great except when the user
looks into the Security Event log, the Category column is shown as (3). I
want it to show "Object Access" but I cannot find what the actual numeric
value should be so that it shows "Object Access" instead of (3). I have
complete control over the message file (i.e. X.mc) so can change the message
definitions if need be. Any advice would be greatly appreciated.

Thanks in advance.



Posted by Roger Abell [MVP] on February 22, 2007, 2:07 am
Please log in for more thread options
> Hi All,
>
> I am logging certain events into the security event log by using
> AuthzReportSecurityEvent. Everything is working great except when the
> user looks into the Security Event log, the Category column is shown as
> (3). I want it to show "Object Access" but I cannot find what the actual
> numeric value should be so that it shows "Object Access" instead of (3).
> I have complete control over the message file (i.e. X.mc) so can change
> the message definitions if need be. Any advice would be greatly
> appreciated.
>

Well, that is sort of a good question, since category 3 for source
Security is in fact Object Access.

If you look with such as
sComp = "." ' or as desired
sQuery = "Select * from Win32_NTLogEvent Where Logfile = 'Security' And
'Category = 3'"
Set oWmiSvc = GetObject("winmgmts:" _
& "!\" & sComp & "\root\cimv2")
Set cEvents = oWmiSvc.ExecQuery(sQuery)

are your events in the resulting collection?
(if not, drop the And 'Category = 3' from the where clause)
Look for relevent oEvent in cEvents collection by examining
such as
sEvtSrc = oEvent.SourceName
sEvtCat = oEvent.Category
iEvt = oEvent.EventCode
sEvtDesc = oEvent.Description
etc.

I suspect that sEvtSrc for your events is not "Security" and so
it does not have a resources to translate the category 3 to show.

Roger



Similar ThreadsPosted
Security Event ID 560 June 20, 2007, 4:07 pm
Security Event Logs June 10, 2005, 8:36 am
Security event view April 20, 2006, 1:04 pm
security event logs in DC as well ? SOS May 3, 2006, 6:06 pm
Unknown Security Event December 27, 2006, 9:08 am
Security for Event Viewer May 19, 2008, 3:43 pm
Security Log Event has Strange Timestamp April 5, 2006, 2:20 pm
Event ID 577 Filing Security Logs July 19, 2006, 10:45 am
Critical security hotfix causes event log warnings May 3, 2007, 1:30 pm
Reading Security Event Logs with Service Account November 15, 2007, 7:36 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap