View Activity Stream Logs in Oracle Log Analytics
Publish human in the loop activity stream logs to Oracle Log Analytics to view them beyond the standard retention period in Oracle Cloud Console. Oracle Log Analytics provides long-term log retention for auditing and compliance, along with dashboards that help you analyze workflow activity, identify trends, and troubleshoot workflow issues.
About Activity Stream Logs Published to Oracle Log Analytics
Activity stream logs are generated and published to Oracle Log Analytics for the following state changes of workflow and its components.
- Workflow: Created, Completed, Faulted
- Start Event: Created, Completed
- Task: Created, Unassigned, Assigned
- End Event: Created, Completed
- If Else: Created, Completed
Activity stream logs are published in JSON format to Oracle Log Analytics. The predefined parser for human in the loop activity stream logs is used to parse the JSON log source file into log entries, and then parse those log entries into Oracle Log Analytics fields. The table below gives the mapping between JSON field names and the Log Analytics field names.
| JSON Field | Log Analytics Field | Data Type | Description |
|---|---|---|---|
| time | Time | TimeStamp | Time stamp at which the log record was captured in human in the loop activity stream. |
| processDefinitionId | Definition | String | Unique identifier (GUID) of the deployed workflow. |
| processDefinitionName | Process Name | String | Name of the workflow. |
| processDefinitionKey | Key | String | Key identifier of the corresponding workflow which is in the format <OICProjectID>--<WorkflowVersion>--<WorkflowName> |
| processDefinitionVersion | Version | String | Workflow version |
| processInstanceState | Process State | String | State of the workflow record. |
| processInstanceId | Instance | String | Unique identifier (GUID) of the specific running or completed workflow instance. |
| activityType | Event Type | String | Type of workflow activity being executed (for example, task, start event, end event, and so on) |
| activityInstanceState | Event State | String | Current state of the activity instance (For example, Created, Assigned, Completed, and so on). |
| startTime | Start Time | TimeStamp | Date and time when the activity instance began execution. |
| endTime | End Time | TimeStamp | Date and time when the activity instance completed. |
| activityInstanceId | Event Instance ID | String | Unique identifier (GUID) of the specific execution instance of a workflow activity. |
| activityId | Event ID | String | Unique identifier (GUID) of the activity as defined in the workflow model. |
| activityName | Event | String | Name of the workflow activity. |
| userTaskOutputPayload.taskExec.approverDisplayName | Approver | String | Display name of the user who approved or acted on the task. |
| userTaskOutputPayload.taskExec.approver | Approver ID | String | ID of the user who approved or acted on the task. |
| assigneeName | Assignee | String | Display name of the user or group currently assigned to the task. |
| assigneeId | Assignee ID | String | Unique identifier of the user or group assigned to the task. |
| assigneeType | Assignee Type | String | Type of assignee, such as User or Group. |
| taskId | Task ID | String | Unique identifier of the task instance. |
| oicProjectId | Project ID | String | Unique identifier of the Oracle Integration project containing the workflow. |
| updatedTime | Update Time | TimeStamp | Date and time when the task or activity was last updated. |
| candidateUsersAndGroups.[*].name | User Names | String, Multi-valued | Names of a users or groups who can claim and take action on the task. |
| processInstanceDuration | Duration | Float | The total time taken by the process instance from start to completion. |
| activityInstanceDuration | Event Duration | Float | Total time taken by the activity instance. |
| taskOutcome | Result | String | Final outcome of the task (for example, Approve, Reject or Submit). |
| faultCode | Error ID | String | Error or fault code associated with the activity or task execution, if any. |
| taskSubtype | SubType | String | Subtype or classification of the task. |
| activityInstanceSubState | Sub Status code | String | More detailed status of the activity instance. |
| userTaskOutputPayload.taskExec.approverComment | Comment | String | Comments provided by the approver while completing the task. |
| candidateUsersAndGroups[*].type | User Types | String, Multi-valued | Types of candidate assignee, such as Users and Groups. |
| deploymentId | Deployment ID | String | Unique identifier (GUID) of the deployed workflow corresponding to the activation. |
| serviceInstanceOCID | OCI Resource OCID | String | Oracle Cloud Identifier (OCID) of the service instance where the workflow is deployed. |
