A typical scenario of a user performing CA Harvest SCM project actions and then of an administrator auditing those actions follows.
Example: Perform User Actions
This example shows the user JohnD performing the following CA Harvest SCM actions, and the records of the actions in the audit log.
Action 1: The login fails.
The login succeeds.
Action 2: Creates project E1
Action 3: Creates state S1 in project E1
Action 4: Creates state process P1 in state S1
Action 5: Creates linked process L1 in state process P1
|
|
Action 1 |
Action 2 |
Action 3 |
Action 4 |
Action 5 |
|---|---|---|---|---|---|
|
AuditEventObjId |
1 |
2 |
3 |
4 |
5 |
|
ActionObjId |
411 |
200 |
700 |
1300 |
1700 |
|
SuccessFailure |
F |
S |
S |
S |
S |
|
ActionName |
Login user |
Create project |
Create state |
Create state process |
Create linked process |
|
EventTime |
12/4/2006 11:10am |
12/4/2006 11:15am |
12/4/2006 11:20am |
12/4/2006 11:25am |
12/4/2006 11:28am |
|
UsrObjId |
10 |
10 |
10 |
10 |
10 |
|
UserName |
JohnD |
JohnD |
JohnD |
JohnD |
JohnD |
|
|
|
|
|
|
|
|
ClientHostname |
HClient1 |
HClient1 |
HClient1 |
HClient1 |
HClient1 |
|
ClientProcessId |
2358 |
2358 |
2358 |
2358 |
2358 |
|
ServerHostname |
HBroker1 |
HBroker1 |
HBroker1 |
HBroker1 |
HBroker1 |
|
ServerProcessId |
5867 |
5869 |
5868 |
5867 |
5868 |
|
|
|
|
|
|
|
|
ResourceTypeObjId |
4 |
2 |
7 |
13 |
17 |
|
ResourceTypeName |
User |
Project |
State |
State Process |
Linked Process |
|
ResourceObjId |
10 |
350 |
567 |
1200 |
1201 |
|
ResourceName |
JohnD |
E1 |
S1 |
P1 |
L1 |
|
|
|
|
|
|
|
|
ER1ResourceTypeObjId |
1 |
1 |
1 |
1 |
1 |
|
ER1ResourceTypeName |
Broker |
Broker |
Broker |
Broker |
Broker |
|
ER1ResourceObjId |
1 |
1 |
1 |
1 |
1 |
|
ER1ResourceName |
HBroker1 |
HBroker1 |
HBroker1 |
HBroker1 |
HBroker1 |
|
|
|
|
|
|
|
|
ER2ResourceTypeObjId |
|
|
2 |
2 |
2 |
|
ER2ResourceTypeName |
|
|
Project |
Project |
Project |
|
ER2ResourceObjId |
|
|
350 |
350 |
350 |
|
ER2ResourceName |
|
|
E1 |
E1 |
E1 |
|
|
|
|
|
|
|
|
ER3ResourceTypeObjId |
|
|
|
7 |
7 |
|
ER3ResourceTypeName |
|
|
|
State |
State |
|
ER3ResourceObjId |
|
|
|
567 |
567 |
|
|
|
|
|
S1 |
S1 |
|
ER3ResourceName |
|
|
|
|
|
|
|
|
|
|
|
|
|
ER4ResourceTypeObjId |
|
|
|
|
13 |
|
ER4ResourceTypeName |
|
|
|
|
State Process |
|
ER4ResourceObjId |
|
|
|
|
1200 |
|
ER4ResourceName |
|
|
|
|
P1 |
Example: Query the Log View
This example shows how the administrator queries the log view using queries.
SELECT * FROM HARAUDITLOGVIEW WHERE ActionName = ‘Login user’ AND SuccessFailure = ‘F’ Results: Action 1.
SELECT * FROM HARAUDITLOGVIEW WHERE UserName = ‘JohnD’ Results: Actions 1,2,3,4,5.
SELECT * FROM HARAUDITLOGVIEW WHERE ResourceTypeName = ‘Project’ AND ResourceName = ‘E1’ Results: Action 2.
SELECT *
FROM HARAUDITLOGVIEW
WHERE
(ResourceTypeName = ‘Project’ AND ResourceName = ‘E1’)
OR
(ER2ResourceTypeName = ‘Project’ AND ER2ResourceName = ‘E1’)
Results: Actions 2,3,4,5.
Note: Projects are a Level 2 resource.
SELECT *
FROM HARAUDITLOGVIEW
WHERE
(ResourceTypeObjId = 7 AND ResourceObjId = 567)
OR
(ER3ResourceTypeObjId = 7 AND ER3ResourceObjId = 567)
Results: Actions 3,4,5.
Note: States are a Level 3 resource.
|
Copyright © 2013 CA.
All rights reserved.
|
|