This OIC Gen2 api lets you download -
- ICS Diagnostic Log
- ICS flow log
- Audit Log
The request format is as follows -
https://oicpm-oicpm-px.integration.ocp.oraclecloud.com/ic/api/integration/v1/monitoring/logs/log
The valid log values are -
- icsdiagnosticlog
- icsflowlog
- icsauditlog
Download the Diagnostic Log
I now download the diagnostic log and see the following, when I unzip it -
Note the structure -
- access.log
- oic_server1.log
- oic_server1.out
- oic_server1-nodemanager.log
As you can see, this is essentially of little use to an OIC admin.
ActionID:y0][ActionName:InvoicesToATP][ActionType:Return]: Response received from InvoicesToATP
[2024-09-09T16:45:09.088+00:00] [oic_server1] [NOTIFICATION] [] [oracle.ics.trace.soa.bpel] [tid: 102] [userId: niall.commiskey@oracle.com] [ecid: d505d8d9-9d4e-48cb-9f6f-ee1c4a2edd04-002e7192,0] [APP: soa-infra] [partition-name: DOMAIN] [tenant-name: GLOBAL] [FlowId: 0000P7NfC8v5uXdLxe4EyW1anhva0002yu] [oci.instanceName: OICPM] [oci.identityDomain: identityDomainName] [ICS Activity Stream Logging]: [Code:INVOICESTOATP][Version:01.00.0000][Instance:62405859][Operation:execute][ActionID:y0][ActionName:InvoicesToATP][ActionType:Return]: Integration execution has completed
However, it's not that readable.
Same applies to the oic_servern_diagnostic.log -
Net, net, these logs are useful for checking out engine errors, but are not useful from a compliance perspective, e.g. these files don't help you prove that orderNr 123 was processed on a certain date.
Download the ICS Flow Log
The Structure of the downloaded zip -
I download the log file again, and now I see the payload in the log -
Download the Audit Log
This log details who did what in the designtime -
[2024-09-25 13:29:17.577] [userId: niall.commiskey@oracle.com] [niall.commiskey@oracle.com,ACTIVATE,ICS_ProjectV2,AA_SIMPLE_SYNC_WITHCHIL,AA-Simple-Sync-WithChild,01.00.0000] User niall.commiskey@oracle.com activated Integration AA-Simple-Sync-WithChild 01.00.0000
[2024-09-25 13:29:17.361] [userId: niall.commiskey@oracle.com]
So now we have looked at what's available from OIC gen2.
Let's turn to OIC3.
OIC3 Retrieve Audit log
Note the structured format of the response, easier to read and process, compared to OIC Gen2.
The following OIC3 api can be used to retrieve instance flow details, similar, but not the same as the OIC gen2 ICS Flow log. -
As you can see, even in debug mode, the request payload is not returned.
What we do see, however, is the tracking fields and their values.