Refer the screenshot and the points listed below to to create a stream for log data to be written to for Splunk to collect from.
In this step, You will create a log group and configure an example log using Virtual Cloud Network (VCN) Flow Logs.
Refer the screenshot and the points listed below to complete Step 1.
Refer the screenshot and the points listed below to complete Step 3 to create a Service Connector in OCI Logging.
1. Open the navigation menu. Under Logging, click Service Connectors.
1. Choose the Compartment where you want to create the service connector.
1. Click Create Connector.
1. On the Create Service Connector page, fill in the settings as noted below:
1. Connector Name: User-friendly name for the new service connector.
1. Description: Optional identifier.
1. Resource Compartment: The compartment where you want to store the new service connector.
1. Configure Service Connector:
1. Select Source: Logging
1. Select Target: Streaming
1. Under configure source connection(_Audit Logs):
1. Compartment: Select the (root) compartment
1. Log Group: Select _Audit
1. Check: Include _Audit in subcompartments to collect all compartment logs
1. Under configure source connection(Service Log):
1. Click ++Another Log
1. Compartment: Select the compartment that contains your log group.
1. Log Group: Select the log group created in step 1.
1. Leave Blank to collect all Logs in the Log Group
1. Logs: Select the log created in step 1 to collect the single service log.
1. Under configure target connection:
1. Compartment: Select the compartment that contains your stream.
1. Stream: Select the stream created in step 2.
If you do not have an inclusive IAM policy, you will see the following message:
To finish the creation click the Create button on the left.
The logging addon for Splunk supports access both by instance principals and using API signing keys. Oracle recommends using an instance principal, to avoid storing long-lived tokens. If you're not using an instance principal, use an API signing key.
Depending on the access method that you choose, define a least-privilege policy as shown in the following examples:
Create an OCI IAM policy like the below:
Allow group <Splunk_User_Group> to use stream-pull in compartment <compartment_of_stream>
-Removed packages not called by primary script
-Reorganized file structure
Added the capability to use multiple workers to use consumer groups.
Deprecated the manual selection of partition number.
Added the ability to use an encrypted PEM file.
Enhanced logging and debugging.
As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.