Note:

Integrate Oracle Cloud Infrastructure Logging with Cribl using Oracle Cloud Infrastructure Streaming

Introduction

Oracle Cloud Infrastructure (OCI) Logging: OCI offers a native logging service that aggregates logs from different OCI services, including Compute, Networking, Object Storage, and Database. These logs are stored in a centralized location within OCI and can be accessed through the OCI Console or programmatically via APIs. While OCI Logging service provides essential capabilities, organizations often need to integrate OCI logs with external log management platforms like Cribl for advanced processing, analysis, and visualization.

Cribl is a next-generation log management platform that empowers organizations to take control of their log data. It offers features such as log routing, transformation, enrichment, and filtering, allowing users to optimize log streams according to their specific requirements. Cribl can easily send log data from various sources, such as OCI to destinations like Google Chronicle and Splunk. This integration enables organizations to gain deeper insights, enhance operational efficiency, and drive success in our data-driven world.

Objectives

Prerequisites

Task 1: Create User, Group, Stream and Connector in OCI

  1. Create a user and generate an auth token. To create auth token, see Getting an Auth Token.

    Note: Note down the auth token to be provided in Cribl as the password.

  2. Create a group and add the user to this group.

  3. Create a policy.

    • Allow group ‘<domain_name>/<Cribl_User_Group>’ to use stream-pull in compartment <compartment_of_stream>, Replace the values of <domain_name>,<Cribl_User_Group> and <compartment_of_stream> accordingly.
  4. To create a stream, go to Analytics & AI, Messaging, Streaming.

    Note: Note down the stream name.

    Edit button

  5. Once the stream is created. Copy the Bootstrap Servers, Username from Kafka connection settings under the respective stream pool. This will be used in Cribl during configuration.

    Edit button

  6. To create a connector, go to Analytics & AI, Messaging, Connector Hub. Include the respective log group or logs. Remember to click the default create policy dialog box for logs to be pushed to streaming.

    Edit button

    Edit button

    Edit button

Task 2: Configure Cribl

  1. In the Manage Sources section, select KafKa.

    Edit button

  2. Configure source Kafka with the details from OCI Streaming. The Brokers are bootstrap servers, Topic is stream name.

    Edit button

  3. Select Use TLS in TLS Setting while configuring the source.

    Edit button

  4. Check the Authentication and add the required fields captured earlier from OCI stream. The password here is the auth token of the OCI user.

    Edit button

  5. Go to Live Data for the logs consumed from OCI stream.

    Edit button

Acknowledgments

More Learning Resources

Explore other labs on docs.oracle.com/learn or access more free learning content on the Oracle Learning YouTube channel. Additionally, visit education.oracle.com/learning-explorer to become an Oracle Learning Explorer.

For product documentation, visit Oracle Help Center.