Work with organization audit logs
Portal for ArcGIS records user activity and any changes that occur to the system to audit logs. Audit logs are an important tool for monitoring and troubleshooting critical or breaking changes and identifying the organization members or processes that made those changes, their effects on the system, and the time those events occurred.
Audit logs can be processed by Security Information and Event Management (SIEM) tools to generate an audit trail, track trends in user activity, and monitor and address any security threats or vulnerabilities.
Audit logs capture information for the following events:
Accessing the organization portal site
Creating, deleting, updating, and disabling member accounts
Creating and updating user roles
Adding and configuring groups
Adding and removing members from a group
Sharing items
Changing item ownership
Adding, updating, moving, and deleting items
Organization audit log access
The default directory where the portal writes audit logs is <Portal for ArcGIS installation directory>/usr/arcgisportal/logs/<machine name>/audit. It is not recommended that you manually make changes to the log files in this directory through the Linux file system. If you need to move the files for backup or archival purposes, copy them to the desired location. You can change the audit log location at any time using the Portal Administrator Directory.
The default directory where the portal writes audit logs is C:\arcgisportal\logs\<machine name>\audit. You can change the audit log location at any time using the Portal Administrator Directory.
Change organization audit log settings
Audit log settings, such as log retention policy and the default directory for the logs, are inherited from portal logs. To change audit logs settings, you must change the portal log settings using the Portal Administrator Directory. For instructions, see Specify portal log settings.
Delete organization audit logs
To delete audit logs, complete the following steps:
Open the Portal Administrator Directory and log in as an administrator.
The URL is typically available at
https://webadaptorhost.example.com/webadaptorname/portaladmin.Click Logs > Clean.
Select the output format from the Format drop-down list.
Click Clean logs.
All log files are deleted from the portal machine.
Audit log schema
Audit log events are recorded in a JSON object format. The following fields are recorded for each event.
| Field | Type | Field value |
|---|---|---|
version |
String | The audit log schema version. This value is updated whenever the audit log schema changes. |
loggedBy |
String | The component that generated the audit record. |
timestamp |
Number | The event timestamp represented as a numeric epoch value in milliseconds. |
eventId |
String | A unique identifier for the audit event, in UUID format. |
event |
String | A descriptive identifier for the audit event or event category. |
eventLevel |
String | The event's priority level. Events are classified as LEVEL_1 (high), LEVEL_2 (medium), or LEVEL_3 (low). |
status |
String | Indicates whether the operation corresponding to this event succeeded or failed. |
statusCode |
Number | The HTTP status code associated with the event. |
actor |
String | The ArcGIS username of the principal that initiated the audited action. |
actorId |
String | The actor's unique ArcGIS Enterprise identifier. |
actorRole |
String | The actor's role |
sourceLp |
String | The source IP address from which the request originated. |
destinationLp |
String | The IP address of the ArcGIS Enterprise component that handled the request. |
destinationHost |
String | The hostname of the ArcGIS Enterprise component that handled the request. |
resource |
String | The resource path of the ArcGIS REST endpoint invoked. |
data |
JSON | Additional event-specific details. |
userAgent |
String | The value of the HTTP userAgent request header. |
message |
String | An optional, descriptive message associated with the event. |