Difference between revisions of "Reference documentation for Audit Log fields"
From AgileApps Support Wiki
imported>Aeric |
imported>Aeric |
||
(37 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=== Fields === | |||
<span {{Colorhighlight}}>Highlighted and asterisked fields* are used for network policy logs and the field audit log, and can have different meaning based on the context.</span> | |||
:''Note:'' Unless otherwise indicated, the attribute for a field is "Editable on Add or Update". | |||
:{| border="1" cellpadding="5" cellspacing="0" | :{| border="1" cellpadding="5" cellspacing="0" | ||
!Field | !Field !! Attribute !! Description | ||
!Description | |||
|-valign="top" | |-valign="top" | ||
|record_id | |record_id || align="center"|Read Only | ||
| | | | ||
*[[Record Id]] for this Audit Log entry | *[[Record Id]] for this Audit Log entry | ||
*This field acts as primary key for this table | *This field acts as primary key for this table | ||
*A new unique id is generated for every record inserted in this table | *A new unique id is generated for every record inserted in this table | ||
|-valign="top" | |-valign="top" | ||
|reference_id | |reference_id || | ||
| | | | ||
*[[Record Id]] of the record being logged | *[[Record Id]] of the record being logged | ||
*This can be used to fetch more details about the record | *This can be used to fetch more details about the record | ||
|- | |- | ||
| type|| Description of the [[#Log Codes|Log Code]] | | type || align="center"|Read Only || Description of the [[#Log Codes|Log Code]] | ||
|-valign="top" | |-valign="top" | ||
|type_code | |type_code || | ||
| | | | ||
*Code indicating type of log activity, see [[#Log Codes|Log Codes]] for more information | *Code indicating type of log activity, see [[#Log Codes|Log Codes]] for more information | ||
*User can optionally search the type by type_code | *User can optionally search the type by type_code | ||
|- | |- | ||
| operation|| Description of the [[#Operation Codes|Operation Code]] | | operation || align="center"|Read Only || Description of the [[#Operation Codes|Operation Code]] | ||
|-valign="top" | |-valign="top" | ||
|operation_code | |operation_code || | ||
| | | | ||
*Code indicating type of operation, see [[#Operation Codes|Operation Codes]] for more information | *Code indicating type of operation, see [[#Operation Codes|Operation Codes]] for more information | ||
*User can optionally search the operation by operation_code | *User can optionally search the operation by operation_code | ||
|- | |- | ||
| description|| Description of the action | | description || align="center"|Read Only || Description of the action | ||
|- | |- | ||
|description_key||Token for the description, which is used in search actions | |description_key || ||Token for the description, which is used in search actions | ||
|- | |- | ||
| | |object_key || ||Token for the object, which is used in search actions | ||
|-valign="top" | |-valign="top" | ||
| old_name|| Previous field name, for example: | | old_name || || Previous field name, for example: | ||
:<tt>name</tt> in {{type}}s | :<tt>name</tt> in {{type}}s | ||
:or | :or | ||
:<tt>field_name</tt> in [[Objects]] | :<tt>field_name</tt> in [[Objects]] | ||
|-valign="top" | |-valign="top" | ||
| new_name|| New field name, for example: | | new_name || || New field name, for example: | ||
:<tt>name</tt> in {{type}}s | :<tt>name</tt> in {{type}}s | ||
:or | :or | ||
:<tt>field_name</tt> in [[Objects]] | :<tt>field_name</tt> in [[Objects]] | ||
|- | |||
| date_created || align="center"|Read Only || Date the activity is logged | |||
|- | |- | ||
| owner_id|| Record owner identifier | | owner_id || align="center"|Read Only || Record owner identifier | ||
|- | |- | ||
|{{Colorhighlight}}|date_col1* | |{{Colorhighlight}}|date_col1* || {{Colorhighlight}} align="center"|Read Only | ||
|{{Colorhighlight}}| Start date of policy | |{{Colorhighlight}}| Start date of policy | ||
|- | |- | ||
|{{Colorhighlight}}| date_col2* | |{{Colorhighlight}}| date_col2* || {{Colorhighlight}} align="center"|Read Only | ||
|{{Colorhighlight}}| End date policy | |{{Colorhighlight}}| End date policy | ||
|- | |- | ||
|{{Colorhighlight}}| int_col1* | |{{Colorhighlight}}| int_col1* || {{Colorhighlight}} align="center"|Read Only | ||
|{{Colorhighlight}}| Status code for policy execution | |{{Colorhighlight}}| Status code for policy execution | ||
|- | |- | ||
|{{Colorhighlight}}|int_col3* | |{{Colorhighlight}}|int_col3* || {{Colorhighlight}} align="center"|Read Only | ||
|{{Colorhighlight}}| Access violations entry in Audit Log, contains the -1 value | |{{Colorhighlight}}| Access violations entry in Audit Log, contains the -1 value | ||
|- | |- | ||
|{{Colorhighlight}}| char_col1* | |{{Colorhighlight}}| char_col1* || {{Colorhighlight}} align="center"|Read Only | ||
|{{Colorhighlight}}| Field Id | |{{Colorhighlight}}| Field Id | ||
|- | |- | ||
|{{Colorhighlight}}|object* | |{{Colorhighlight}}|object* || {{Colorhighlight}} align="center"|Read Only | ||
|{{Colorhighlight}}|Generic fields used to log specific information, [[Object Type Identifier]] in most cases | |{{Colorhighlight}}|Generic fields used to log specific information, [[Object Type Identifier]] in most cases | ||
*Status for policy execution | *Status for policy execution | ||
*Note: This is not a searchable field, use <tt>object_key</tt> instead to search by object | *Note: This is not a searchable field, use <tt>object_key</tt> instead to search by object | ||
|- | |- | ||
| | |{{Colorhighlight}}|char_col3* || {{Colorhighlight}} align="center"|Read Only | ||
|{{Colorhighlight}}| | |||
|{{Colorhighlight}}| User Id | |{{Colorhighlight}}| User Id | ||
|- | |- | ||
|{{Colorhighlight}}|char_col4* | |{{Colorhighlight}}|char_col4* || {{Colorhighlight}} align="center"|Read Only | ||
|{{Colorhighlight}}| Name of the record which is being accessed or a Search String in a Search action | |{{Colorhighlight}}| Name of the record which is being accessed or a Search String in a Search action | ||
|} | |} | ||
===Audit Log for Scheduled Activities=== | ====Audit Log for Scheduled Activities==== | ||
:{| border="1" cellpadding="5" cellspacing="0" | :{| border="1" cellpadding="5" cellspacing="0" | ||
Line 110: | Line 128: | ||
|} | |} | ||
===Field Audit Log=== | ====Field Audit Log==== | ||
:{| border="1" cellpadding="5" cellspacing="0" | :{| border="1" cellpadding="5" cellspacing="0" | ||
!Field | !Field | ||
Line 149: | Line 167: | ||
::;Access Violation:int_col3: To identify the access violations entry in Audit Log, this field contains the -1 value | ::;Access Violation:int_col3: To identify the access violations entry in Audit Log, this field contains the -1 value | ||
::;Picklist Items:char_col1:Id of the Picklist for which the Picklist Item is being maintained | ::;Picklist Items:char_col1:Id of the Picklist for which the Picklist Item is being maintained | ||
::;Application Role Workspace Preferences:char_col1:Role Id for specific tab | ::;Application Role Workspace Preferences:char_col1:Role Id for specific tab application role tab preference is of type 64 | ||
::;Tab Access:object_singular_name:Object Id ([[Object Type Identifier]]) | ::;Tab Access:object_singular_name:Object Id ([[Object Type Identifier]]) | ||
::;Record Access:reference_id:Record Id ([[Record Id]]) of the record being accessed | ::;Record Access:reference_id:Record Id ([[Record Id]]) of the record being accessed | ||
Line 158: | Line 175: | ||
:::char_col4:Search string | :::char_col4:Search string | ||
===Governance Log=== | ====Governance Log==== | ||
{{:Governance Log}} | {{:Governance Log}} | ||
===Example - Search Contacts=== | ====Example - Search Contacts==== | ||
Search the | Search the Contacts object for the search string ''"Test"''. The following entry is logged (NETWORK_LOG). | ||
:{| border="1" cellpadding="5" cellspacing="0" | :{| border="1" cellpadding="5" cellspacing="0" | ||
Line 172: | Line 189: | ||
!char_col4 | !char_col4 | ||
|- | |- | ||
| -1 ||66||1||Search Contacts for "Test"|| | | -1 ||66||1||Search Contacts for "Test"||Contacts||Test | ||
|} | |} | ||
===Example - Search All=== | ====Example - Search All==== | ||
Search all objects for the search string ''"Test"''. The following entry is logged (NETWORK_LOG). | Search all objects for the search string ''"Test"''. The following entry is logged (NETWORK_LOG). | ||
Line 189: | Line 206: | ||
|} | |} | ||
==Log Codes== | ===Log Codes=== | ||
:{| border="1" cellpadding="5" cellspacing="0" | :{| border="1" cellpadding="5" cellspacing="0" | ||
Line 197: | Line 214: | ||
!User documentation related to this platform element | !User documentation related to this platform element | ||
|- | |- | ||
| 1||Account|| | | 1||Account|| Accounts | ||
|- | |- | ||
| | | 2||Contact|| Contacts | ||
|- | |- | ||
| 6|| | | 3 - 6 || reserved || | ||
|- | |- | ||
| 7||Ownership||[[Record Owners]] | | 7||Ownership||[[Record Owners]] | ||
|- | |- | ||
| 8 | | 8 - 9 || reserved || | ||
|- | |- | ||
| 10||Report||[[Reports]] | | 10||Report||[[Reports]] | ||
|- | |- | ||
| 11 | | 11 - 12 || reserved || | ||
|- | |- | ||
| 14||Billing Plan|| | | 14||Billing Plan|| | ||
|- | |- | ||
| 16|| | | 16|| reserved || | ||
|- | |- | ||
| 19||Roles||[[Roles]] | | 19||Roles||[[Roles]] | ||
Line 239: | Line 246: | ||
| 26||Custom Field|| [[Fields]] | | 26||Custom Field|| [[Fields]] | ||
|- | |- | ||
| 27 | | 27 - 28|| reserved || | ||
| | |||
| | |||
|- | |- | ||
| | | 29||Merge||[[Case Merge]] | ||
|- | |- | ||
| | | 30||Policy Management|| [[Team Data Sharing Policies]] | ||
|- | |- | ||
| | | 31 - 35 || reserved || | ||
|- | |- | ||
| 36||Import Data||[[Import Data]] | | 36||Import Data||[[Import Data]] | ||
Line 267: | Line 264: | ||
| 50||Custom Layouts|| [[Forms]] | | 50||Custom Layouts|| [[Forms]] | ||
|- | |- | ||
| 51||Password Policy||[[Password | | 51||Password Policy||[[Password Policy]] | ||
|- | |- | ||
| 52||Custom Object Data|| [[Objects]] | | 52||Custom Object Data|| [[Objects]] | ||
|- | |- | ||
| 53|| | | 53|| reserved || | ||
|- | |- | ||
| 54||Team Resource Sharing Policies|| | | 54||Team Resource Sharing Policies|| | ||
Line 279: | Line 276: | ||
| 56||View/Report||[[Views]]/[[Reports]] | | 56||View/Report||[[Views]]/[[Reports]] | ||
|- | |- | ||
| 57 | | 57 - 58 || reserved || | ||
|- | |- | ||
| 59||Service Provider Settings||[[Service Provider Settings]] | | 59||Service Provider Settings||[[Service Provider Settings]] | ||
Line 293: | Line 288: | ||
| 63||Picklist Items|| | | 63||Picklist Items|| | ||
|- | |- | ||
| 64||Application Role Workspace Preferences||[[ | | 64||Application Role Workspace Preferences||[[Tab Preferences]] for objects in applications | ||
|- | |- | ||
| 65||Application Role View Preferences||[[ | | 65||Application Role View Preferences||[[View Preferences]] for objects in applications | ||
|- | |- | ||
| 66||Search||[[Search]] | | 66||Search||[[Search]] | ||
Line 301: | Line 296: | ||
| 67||View||[[View]] | | 67||View||[[View]] | ||
|- | |- | ||
| 68||Access Violation||Access violations are logged when [[ | | 68||Access Violation||Access violations are logged when [[Audit_Log#Enhanced_Security_Audit|Enhanced Security Audit]] is enabled | ||
|- | |- | ||
| 69||Tab|| | | 69||Tab|| | ||
|- | |- | ||
| | | 70 - 71 || reserved || | ||
|- | |- | ||
| 72||Web Tab||[[Web Tabs]] | | 72||Web Tab||[[Web Tabs]] | ||
|- | |- | ||
| 73|| | | 73|| reserved || | ||
|- | |- | ||
| | | 74||Custom Action||[[Custom Form Actions]] | ||
|- | |- | ||
| | | 75-79 || reserved || | ||
|- | |- | ||
| | | 80||Document Template||[[Document Templates]] | ||
|- | |- | ||
| | | 81|| reserved || | ||
|- | |- | ||
| | | 82|| reserved || | ||
|- | |- | ||
| | | 83||Tab Preference||[[Tab Preferences]] | ||
|- | |- | ||
| 85|| | | 84-85|| reserved || | ||
|- | |- | ||
| 86||Layout Section||[[Section]] | | 86||Layout Section||[[Section]] | ||
Line 347: | Line 326: | ||
| 88||Related Information Button|| | | 88||Related Information Button|| | ||
|- | |- | ||
| 89|| | | 89|| reserved || | ||
|- | |- | ||
| 90||Recycle Bin||[[Recycle Bin]] | | 90||Recycle Bin||[[Recycle Bin]] | ||
|- | |- | ||
| 91 | | 91-93 || reserved || | ||
|- | |- | ||
| 94||Application||[[ | | 94||Application||[[Application Concepts]] | ||
|- | |- | ||
| 95||Page||[[Pages]] | | 95||Page||[[Pages]] | ||
Line 369: | Line 344: | ||
| 100||Global Broadcast||[[Global Broadcast Message]] | | 100||Global Broadcast||[[Global Broadcast Message]] | ||
|- | |- | ||
| 101||View Management||[[Views | | 101||View Management||[[Views and Reports]] | ||
|- | |- | ||
| 102||Export Data||[[Export Data]] | | 102||Export Data||[[Export Data]] | ||
|- | |- | ||
| 103|| | | 103 || reserved || | ||
|- | |- | ||
| 104||Company Information||[[Company Information]] | | 104||Company Information||[[Company Information]] | ||
Line 383: | Line 358: | ||
| 107||Audit Log||[[Audit Log]] | | 107||Audit Log||[[Audit Log]] | ||
|- | |- | ||
| | | 109-110 || reserved || | ||
<!-- | <!-- | ||
|- | |- | ||
Line 389: | Line 364: | ||
--> | --> | ||
|- | |- | ||
| 111|| | | 111|| reserved || | ||
|- | |- | ||
| 112||Report Folder|| | | 112||Report Folder|| | ||
Line 403: | Line 378: | ||
| 117||Indexes||[[Indexes]] | | 117||Indexes||[[Indexes]] | ||
|- | |- | ||
| 118||Record | | 118||Record Locator||[[Record Locator]] | ||
|- | |- | ||
| 120||Notes||[[Notes]] | | 120||Notes||[[Notes]] | ||
Line 418: | Line 393: | ||
|} | |} | ||
==Operation Codes== | ===Operation Codes=== | ||
The following operation codes can be returned, and apply to all [[#Log Codes|Log Code Types]] | The following operation codes can be returned, and apply to all [[#Log Codes|Log Code Types]] | ||
Latest revision as of 22:34, 15 September 2015
Fields
Highlighted and asterisked fields* are used for network policy logs and the field audit log, and can have different meaning based on the context.
- Note: Unless otherwise indicated, the attribute for a field is "Editable on Add or Update".
Field Attribute Description record_id Read Only - Record Id for this Audit Log entry
- This field acts as primary key for this table
- A new unique id is generated for every record inserted in this table
reference_id - Record Id of the record being logged
- This can be used to fetch more details about the record
type Read Only Description of the Log Code type_code - Code indicating type of log activity, see Log Codes for more information
- User can optionally search the type by type_code
operation Read Only Description of the Operation Code operation_code - Code indicating type of operation, see Operation Codes for more information
- User can optionally search the operation by operation_code
description Read Only Description of the action description_key Token for the description, which is used in search actions object_key Token for the object, which is used in search actions old_name Previous field name, for example: - name in System Objects
- or
- field_name in Objects
new_name New field name, for example: - name in System Objects
- or
- field_name in Objects
date_created Read Only Date the activity is logged owner_id Read Only Record owner identifier date_col1* Read Only Start date of policy date_col2* Read Only End date policy int_col1* Read Only Status code for policy execution int_col3* Read Only Access violations entry in Audit Log, contains the -1 value char_col1* Read Only Field Id object* Read Only Generic fields used to log specific information, Object Type Identifier in most cases - Status for policy execution
- Note: This is not a searchable field, use object_key instead to search by object
char_col3* Read Only User Id char_col4* Read Only Name of the record which is being accessed or a Search String in a Search action
Audit Log for Scheduled Activities
Field Description reference_id policy_id description detailed description date_col1 start date of activity date_col2 end date of activity char_col1 status message object object_id (Object Type Identifier) char_col3 user_id int_col1 status code - 1 - started
- 2 - completed
- 3 - completed with errors
- 4 - unable to schedule
Field Audit Log
Field Description reference_id stores record_id (Record Id) description Field status messages type 61, see Log Codes operation Log Type: 1, 2, 3 char_col1 field_id(s) object object_id (Object Type Identifier) old_name Previous field name, for example: - name in System Objects
- or
- field_name in Objects
new_name New field name, for example: - name in System Objects
- or
- field_name in Objects
ownerid Record owner identifier
- Access Violation
- int_col3: To identify the access violations entry in Audit Log, this field contains the -1 value
- Picklist Items
- char_col1:Id of the Picklist for which the Picklist Item is being maintained
- Application Role Workspace Preferences
- char_col1:Role Id for specific tab application role tab preference is of type 64
- Tab Access
- object_singular_name:Object Id (Object Type Identifier)
- Record Access
- reference_id:Record Id (Record Id) of the record being accessed
- object:Object Id (Object Type Identifier) of the record
- char_col4 - Name of the record being accessed
- Search
- object_singular_name:Object Id (Object Type Identifier) of the searched object
- char_col4:Search string
Governance Log
When global Service Configuration code-execution limits ("Develop Configuration") or tenant-specific limits ("Java Code Governors") are exceeded, an audit log entry is generated.
Field Description user_name Login User Name of user who caused the limit to be exceeded user_id User's ID type Governance Threshold Violation type_code 137, see Log Codes operation - Data Policy - Invoke Method
- Controller
- Page
- Job Scheduler
- REST - Class Execution
operation_code - 1 - Data Policy - Invoke Method
- 2 - Controller
- 3 - Page
- 4 - Job Scheduler
- 5 - REST - Class Execution
description Name of the Class or Page and a Threshold Violation Message reference_id - Record Id for "Data Policy - Invoke Method"
- Class name or Page name for other Threshold violations
Example - Search Contacts
Search the Contacts object for the search string "Test". The following entry is logged (NETWORK_LOG).
reference_id type operation description object_singular_name char_col4 -1 66 1 Search Contacts for "Test" Contacts Test
Example - Search All
Search all objects for the search string "Test". The following entry is logged (NETWORK_LOG).
reference_id type operation description object_singular_name char_col4 -1 66 1 Search all objects for "Test" TEST
Log Codes
type_code type User documentation related to this platform element 1 Account Accounts 2 Contact Contacts 3 - 6 reserved 7 Ownership Record Owners 8 - 9 reserved 10 Report Reports 11 - 12 reserved 14 Billing Plan 16 reserved 19 Roles Roles 20 Team Teams 21 Link User to Team and Role Manage Users 22 User Users 24 Team Ownership Operation Teams 25 Login/Logout Login/Logout 26 Custom Field Fields 27 - 28 reserved 29 Merge Case Merge 30 Policy Management Team Data Sharing Policies 31 - 35 reserved 36 Import Data Import Data 40 Picklist Dependencies Dependent Picklist 48 Custom Forms Forms 49 Custom Objects Custom Object 50 Custom Layouts Forms 51 Password Policy Password Policy 52 Custom Object Data Objects 53 reserved 54 Team Resource Sharing Policies 55 Mass Data Operation Mass Operations 56 View/Report Views/Reports 57 - 58 reserved 59 Service Provider Settings Service Provider Settings 60 Scheduled Policies 61 Field Audit Trail Field Audit Log 62 Global Picklists Global Picklists 63 Picklist Items 64 Application Role Workspace Preferences Tab Preferences for objects in applications 65 Application Role View Preferences View Preferences for objects in applications 66 Search Search 67 View View 68 Access Violation Access violations are logged when Enhanced Security Audit is enabled 69 Tab 70 - 71 reserved 72 Web Tab Web Tabs 73 reserved 74 Custom Action Custom Form Actions 75-79 reserved 80 Document Template Document Templates 81 reserved 82 reserved 83 Tab Preference Tab Preferences 84-85 reserved 86 Layout Section Section 87 Related Information Related Information 88 Related Information Button 89 reserved 90 Recycle Bin Recycle Bin 91-93 reserved 94 Application Application Concepts 95 Page Pages 97 Class Classes 98 Static Resource Static Resources 99 Debug Log Debug Log 100 Global Broadcast Global Broadcast Message 101 View Management Views and Reports 102 Export Data Export Data 103 reserved 104 Company Information Company Information 105 Web Form Web Forms 106 Package Packages 107 Audit Log Audit Log 109-110 reserved 111 reserved 112 Report Folder 113 Data Validation Data Validation 114 Layout Rule Layout Rules 115 Database View Database View 116 Package Item Package Items 117 Indexes Indexes 118 Record Locator Record Locator 120 Notes Notes 121 Attachments Attachments 122 Media 123 Folder Templates 124 Scratch Pad 137 Governance Threshold Violation Develop Configuration, Java Code Governors
Operation Codes
The following operation codes can be returned, and apply to all Log Code Types
operation_code operation 0 View 1 Add 2 Update 3 Delete 1001 View Access Violation 1002 Add Access Violation 1003 Update Access Violation 1004 Delete Access Violation