> ## Documentation Index
> Fetch the complete documentation index at: https://docs.odigos.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Splunk (SAPM) (Deprecated)

> Configuring the Splunk (SAPM) (Deprecated) backend (Managed)

### Getting Started

<img src="https://d15jtxgb40qetw.cloudfront.net/splunk.svg" alt="splunk" className="not-prose h-20" />

**Obtaining Access Token**<br />
Go to **Settings** then **Access Tokens** and click **Create New Token**

<Frame>
  <img src="https://mintcdn.com/odigos/pHE1teVWLrD8x6Wa/snippets/shared/backends/images/splunk1.png?fit=max&auto=format&n=pHE1teVWLrD8x6Wa&q=85&s=3a14b36ce4e63b2b7de2ffb6c679a36d" alt="Splunk Access Tokens menu" width="334" height="630" data-path="snippets/shared/backends/images/splunk1.png" />
</Frame>

Give the token a name and select **Ingest Token** for the authorization scope and click create.

<Frame>
  <img src="https://mintcdn.com/odigos/pHE1teVWLrD8x6Wa/snippets/shared/backends/images/splunk2.png?fit=max&auto=format&n=pHE1teVWLrD8x6Wa&q=85&s=aca44406c34343662a6c0c0654a2e47c" alt="Create Access Token form in Splunk" width="907" height="509" data-path="snippets/shared/backends/images/splunk2.png" />
</Frame>

### Configuring Destination Fields

<Accordion title="Supported Signals:">
  ✅ Traces
  ❌ Metrics
  ❌ Logs
  ❌ Profiles
</Accordion>

* **SPLUNK\_ACCESS\_TOKEN** `string` : Access Token.
  * This field is required
* **SPLUNK\_REALM** `string` : Realm. The Splunk realm in use. This is the second part of the URL you use to access Splunk/SignalFX. For example, if you access Splunk at `https://app.us1.signalfx.com`, then the realm is `us1`.
  * This field is required

### Adding Destination to Odigos

There are two primary methods for configuring destinations in Odigos:

##### **Using the UI**

<Steps>
  <Step>
    Use the [Odigos CLI](https://docs.odigos.io/cli/odigos_ui) to access the UI

    ```bash theme={null}
    odigos ui
    ```
  </Step>

  <Step>
    Click on `Add Destination`, select `Splunk (SAPM) (Deprecated)` and follow the on-screen instructions
  </Step>
</Steps>

##### **Using Kubernetes manifests**

<Steps>
  <Step>
    Save the YAML below to a file (e.g. `splunk.yaml`)

    ```yaml theme={null}
    apiVersion: odigos.io/v1alpha1
    kind: Destination
    metadata:
      name: splunk-example
      namespace: odigos-system
    spec:
      data:
        SPLUNK_REALM: <Realm>
      destinationName: splunk
      secretRef:
        name: splunk-secret
      signals:
      - TRACES
      type: splunk

    ---

    apiVersion: v1
    data:
      SPLUNK_ACCESS_TOKEN: <Base64 Access Token>
    kind: Secret
    metadata:
      name: splunk-secret
      namespace: odigos-system
    type: Opaque
    ```
  </Step>

  <Step>
    Apply the YAML using `kubectl`

    ```bash theme={null}
    kubectl apply -f splunk.yaml
    ```
  </Step>
</Steps>
