The fn init command will generate a folder called SumoLogicfn with three files inside: func.py, func.yaml, and requirements.txt. Generate a ‘hello-world’ boilerplate function. Verify your setup by listing applications in the compartment. Note: If you are using Oracle Identity Cloud Service, your username is /oracleidentitycloudservice/. You are prompted for the following information: Replace iad with the three-digit region code for your region.Īssuming you have created the Auth Token already, log in to the registry using the Auth Token as your password. Update the context with the location of the registry you want to use. Update the context with the function’s compartment ID. Once you create the application, click your application name and select Getting Started from the Resources menu. Select Functions under the Developer Services menu.Ĭlick Create Application and enter a name, for example, SumoLogicFnApp. In the Oracle Cloud Console, click the navigation menu and select Solution and Platform. Now every time a object is uploaded to the BucketForSumoLogic bucket,a log entry will be added to the logForBucketActivity log.Ĭonfigure Oracle Functions for Ingesting Logs into Sumo Logic Log Group: Select the LogGroupForBucketActivity log group for the log that you just created in the previous step.Log Name: Enter a name for your log, for example, logForBucketActivity.Log Category: Select Write Access Events.Resource: Choose an arbitrary bucket(for example, BucketForSumoLogic) that you would like observed with the logs.You will see a screen similar to below.Ĭlick Enable service log and enter the following information: Select your compartment, add LogGroupForBucketActivity for the name and add a description. To create a log group, click Create Log Group. In the Oracle Cloud Console, click the navigation menu, select Logging, and then select Log Groups. For simplifying this tutorial, we will capture Oracle Cloud Infrastructure (OCI) generated logs for write-events to an arbitrary bucket of your choice. You can set up any logs as input for Service Connector Hub and hence ingest into Sumo Logic. Please take a note of this endpoint as we will configure our function to use this endpoint to upload logs to Sumo Logic. Each log line we are going ingest will start with a timestamp of its event occurrence so select the option Use time zone from log file.Īs you move to the next screen, we get the HTTPS endpoint for our logs to upload from OCI, using a POST HTTP call. Note: The HTTP source is a metadata tag, stored with your ingested logs, and is useful when searching and filtering logs later in Sumo Logic. In your Sumo Logic account, you need to create an HTTP custom collector app as described in the steps below.Ĭlick Start streaming data to Sumo Logic.Ĭonfigure your HTTP source as shown below. Our solution architecture at a high level is as shown below:Ĭreate a Custom HTTP Source Collector in Sumo Logic Sumo Logic is a popular observability tool that provides monitoring and security services that provide full visibility into your applications. In this tutorial, we will walk you through how you can move logs from OCI into Sumo Logic. We understand that they have standardized their operational postures with popular third-party observability tools and we want to be interoperable with those tools so our customers can continue using the tools they have invested in with Oracle Cloud Infrastructure (OCI). The Oracle Cloud Observability and Manageability platform aims to meet our customers where they are. Move logs from Oracle Cloud Infrastructure into Sumo Logic Introduction When completing your lab, substitute these values with ones specific to your cloud environment. It uses example values for Oracle Cloud Infrastructure credentials, tenancy, and compartments.To sign up for a free account, see Get started with Oracle Cloud Infrastructure Free Tier. This tutorial requires access to Oracle Cloud.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |