Thursday, March 22, 2007

Adding attributes to an Audit Trail

The following is the correct syntax and the only way to add attributes to an audit trail:

Syntax
dmAPIExec("audit,session[,object_id],event_name
[,audit_subtypes][,controlling_app]
[,policy_id[,state_name]][,sign_audit][,authentication]
[,event_description][,attribute_list]")


However, please note this will NOT work for the DM_ALL event:

Example: (the additional 6 blank spaces represent optional arguments from the syntax above)

API> audit,c,030058888000017d,dm_all,T,,,,,,,'acl_name'
...
[DM_AUDITTRAIL_E_AUDIT_ALL_NOT_ALLOW_EXTRA]error: "You are not allowed to specify extra values, for example, ',,,,,,'acl_name'', when auditing all events."


So use an event other like the following instead of dm_all:

API> audit,c,030058888000017d,dm_save,T,,,,,,,'acl_name'
...
OK

No comments: