Pre-requisites for Enabling OCI Logging Analytics

The pre-requisites for enabling OCI Logging Analytics are two folds from a functional standpoint:

Enable Log Analytics at Region Level

To enable log analytics at region level:

  1. Log in into your OCI console.
  2. Choose the appropriate region.
  3. Navigate inside the hamburger menu to Observability & Management > Logging Analytics > Home.
  4. Click Start Using Logging Analytics to enable log analytics for the current region.

Add Policies for Creating Logging Resources

You need to add policies for creating logging resources in OCI.

Different logging analytics resources such as parsers, log groups, fields, and so on need to be created.

The policy required for creating all the resources and streaming, one may need to create the necessary instance principals or user principals. The command below will allow the dynamic-group named {cm_namespace}-instance-principal-group to create and use OCI Logging Analytics.

Allow dynamic-group
        {cm_namespace}-instance-principal-group to MANAGE loganalytics-features-family in
        tenancy

For complete details on such setups, refer OCI documentation: https://docs.oracle.com/en-us/iaas/logging-analytics/doc/iam-policies-catalog-logging-analytics.html.