Skip to main content
 
 
Splunk Lantern

Configuring Log Observer Connect

 

You can use OpenTelemetry to get Docker, Kubernetes, and other log data in Splunk Cloud Platform. As a next step, you might also want to bring correlated metric, log, and trace data into Splunk Observability Cloud so you can troubleshoot application issues. This article describes how to configure Splunk Log Observer Connect to bring those logs into Splunk Observability Cloud.

Splunk Log Observer Connect is an integration that allows you to query your Splunk Cloud Platform logs directly from Splunk Observability Cloud. It allows you to troubleshoot your application and infrastructure behavior using high-context logs, without having to know Search Processing Language (SPL). Seeing your log data correlated with metrics and traces in Splunk Observability Cloud helps your team to locate and resolve problems faster. In this article, we’ll walk through the process of Setting up Splunk Log Observer Connect.

Enable token authentication

The first step is to enable token authentication in Splunk Cloud Platform by going to Settings > Tokens. Then click the Enable Token Authentication button to enable it.

clipboard_ed17e33969011e245cb4a5abae347e1ae.png

Add the Splunk Log Observer Connect connection

  1. In Splunk Observability Cloud, go to Settings > Log Observer Connect. clipboard_e7e6e4e7e030fc5f5961c00710f185b82.png
  2. Click Add new connection to bring up the following screen. clipboard_e28671a1c9bf4c6f3c4bc686dae25111e.png
  3. While we’ll choose Splunk Cloud Platform for our example, the steps with the Splunk Enterprise option are almost identical.

Create a new role in Splunk Cloud Platform

Next, let’s follow the steps in the guided wizard to connect the service account in Splunk Cloud Platform.

  1. Log in to your Splunk platform instance and navigate to Settings > Roles.
  2. In the Actions column, next to user, click the Edit menu and select Clone.
  3. Give your new role a name.
  4. On the Indexes tab, deselect *(All internal indexes) in the Included column.
  5. In the Included column, select the indexes that you want to query in Log Observer.
  6. On the Capabilities tab, ensure edit_tokens_own is selected.
  7. On the Capabilities tab, ensure indexes_list_all is not selected.
  8. On the Resources tab in the User search job limit field, set an appropriate search limit based on the number of users that will access Log Observer simultaneously. Splunk Log Observer runs a minimum of 4 searches per user. For detailed instructions, see Set up Log Observer Connect for Splunk Enterprise.
  9. Click Save.

Let’s assume our new role is named log_observer_connect.

Create a new user in Splunk Cloud Platform

Next, we’ll continue following the guided wizard to configure users in Splunk Cloud Platform.

  1. Navigate to Settings > Users and click New User.
  2. Give your user a name and password. Save these credentials because you will need them to complete the integration wizard.
  3. In the Assign roles field, remove user from the Selected Item(s) box.
  4. In the Available Item(s) box, select the role you created here.
  5. Deselect the >Require password change on first login option.
  6. Click Save.
  7. In Splunk Cloud Platform, log in with the newly created user and accept the terms of service.

Let’s assume our new user is named log_observer_connect_user.

Secure the connection to Splunk Cloud Platform

Next, we’ll use the guided wizard to secure the connection to Splunk Cloud Platform. This requires running a script on the command line, which will output a certificate we need for our setup.

After we have the certificate from the script output, we paste it into the next page of the guided wizard to securely connect Splunk Log Observer Connect and our Splunk Cloud Platform instance.

Ensure you include “BEGIN CERTIFICATE” and “END CERTIFICATE” when pasting the certificate value. Only the first certificate from the script’s output is required.

clipboard_e29982f049ca6878665b943284b39c60c.png

Verify log data in Splunk Observability Cloud

After the setup is complete, navigate to Splunk Log Observer in Splunk Observability Cloud, and verify that you can see the logs successfully.

clipboard_e024cb26e7dd931b85bd675caff50b50b.png

Next steps

After you have metrics, logs, and traces in Splunk Observability Cloud, you'll want to know how to use that information troubleshoot application issues.

In addition, the following resources might help you set up Splunk Log Observer Connect:

Splunk OnDemand Services: Use these credit-based services for direct access to Splunk technical consultants with a variety of technical services from a pre-defined catalog. Most customers have OnDemand Services per their license support plan. Engage the ODS team at ondemand@splunk.com if you require assistance.