Logging in OIC

Santhosh Kumar BVSRK
3 min readJun 8, 2022

In this blog, we will cover couple of concepts around OIC Logs & Dashboards:

  1. How can we retain OIC Logs for a longer period?
  2. How to generate Dashboards from your OIC Logs? — We will discuss about this in the subsequent blog.

Logging in OIC

Most of the customers now-a-days are often interested in retaining OIC Logs for a longer period for various purposes like analyzing the peak for certain integrations, etc.,

In On-Prem world of SOA, logs reside on our local server which are purged on rotational basis based on the age/size of the log files via a schedule job, we used to have a schedule job to delete these purged logs after a certain time. We used to decide the timings for these scheduled jobs.

The same thing can be achieved even in OIC. Now, let us see how can this be achieved in OIC.

In OIC, we can enable Activity Stream Logs for our Instance. Activity Stream logs will store the entire payload of each and every activity in your Integration, only if you enable Tracing & Include Payload while activating the Integration. You can choose whether to include payload or not in your logs based on what you chose here.

Enabling Activity Stream Logs for OIC Instance
Enabling Logs for OIC Instance
  1. While enabling Logs for your OIC Instance, you would need to choose a Log Group. Log Groups, are logical containers for logs. Use log groups to organize and streamline management of logs by applying IAM policy or grouping logs for analysis. Create New Log Group where your Log File will be placed, you can use reuse an existing Log Group if required.
  2. Give a name to your Log File.
  3. Choose the time for which, you want to retain the logs. Default is 1month and you can choose up to 6months.
  4. Enabling Legacy Archival for Logs, once this enabled all logs after the Log Retention Period will be archived to Object Storage Bucket.

This saves your Activity Stream Logs of your OIC Instance. In addition, while enabling logs.

OIC Activity Stream Logs Enabled

The archived logs will be moved to OCI Object Storage Bucket, where you can write policies to determine the retention period post which if you want to move the Logs to Infrequent access or delete them.

Setting Life Cycle Policy in Object Storage Bucket

We will be covering the Dashboard part in the subsequent blog here, as I want to cover different types of Dashboards we can create for OIC.

--

--

Santhosh Kumar BVSRK

16+ Years in IT/ITES| ML & AI Enthusiast| Oracle Cloud Architect, Integration Specialist — BPEL, OSB, OIC, IICS| Database Scripting-SQL, PL/SQL, MySQL