# Splunk Observability Cloud

> Connect Splunk Observability Cloud so detector alerts open incidents, deploy events reach the timeline, and Ace mutes the paging detector while an approved fix rolls out.

Source: https://tryace.dev/docs/integrations/splunk-observability

Ace reads detector alerts, metrics, the APM service map and traces from Splunk Observability Cloud during investigations. Detector alerts open incidents, and deploy events join the workload's change timeline.

| | |
| --- | --- |
| Category | APM |
| Ace reads | Detector alerts, detectors and their SignalFlow programs, metrics, the APM service map, traces, custom events |
| Ace can change | A muting rule on the detector that paged while an approved fix rolls out, and detector rules off or on after approval |
| Opens incidents | Yes, from detector alerts, for workloads that route Splunk Observability Cloud |
| Setup | Realm and org access token |

## What it reads
Ace reads one Splunk Observability Cloud organization while it investigates a workload that reads it under **Observability** in the workload's settings, or routes its alerts. Reads cover the incident window, and alert and event reads start an hour before it.

- Alerts whose state changed: detector and rule, severity, state, when it triggered, and the metric and dimensions of its input.
- A detector's rules, its SignalFlow program, when it last changed and the events it raised.
- One metric's data points filtered on dimensions, up to 20 series and 7 days, with the window before onset as a baseline.
- The APM service map in one environment: services, inferred databases and queues, and who calls whom.
- APM traces, one at a time, failing and slowest spans first.
- Custom events, such as deploys and config pushes your pipelines send, and detector alert events.

The service map and traces need Splunk APM. With **APM environments** set, Ace reads only those environments.

After a fix, Ace checks whether the alert that opened the incident cleared. For detectors that alert when a value rises, it also reads the alert's metric.

For the Blueprint, Ace maps up to 10 environments from the last day of APM data. It adds services, the databases and queues they use, and the calls between them.

Custom events whose type contains `deploy`, `release` or `rollout` join the workload's change timeline, whether or not a workload routes Splunk. Ace reads their service, environment, version and commit from their dimensions or properties.

Detector creates, updates and deletes join the timeline too, if Splunk lets the token read its audit log. Ace checks this when you connect and on **Sync now**.

## What it can change
Ace adds muting rules only after an admin turns on **Actions** for the connection, and each runs on its own unless a policy for that exact action says otherwise. Ace proposes the detector rule switches, and a person always approves them. See [Actions and approvals](https://tryace.dev/docs/concepts/actions-and-approvals).

| Action | What it does | Approval | Undo |
| --- | --- | --- | --- |
| Splunk muting rule | When an approved fix starts rolling out, mutes the detector that paged for 30 minutes. The rule ends on its own. | Runs on its own | Yes. Undo from the incident ends the rule early. |
| Splunk detector rule disable | Turns off rules of one detector so they stop raising alerts, for a rule that pages on a broken or misleading signal. | Approval only | Yes. Enables the same rules again. |
| Splunk detector rule enable | Turns disabled rules of one detector back on. | Approval only | Yes. Disables the same rules again. |

Safeguards:

- A mute covers only the alert's detector, and the service and environment the alert names. Ace adds up to 5 muting rules per approved fix.
- With **APM environments** set, Ace refuses a mute outside them, or one for an alert that names no environment.
- Alerts still active when the rule ends notify again, so a fix that didn't work still pages. Ace never resolves or clears an alert.
- Each rule Ace creates has a description that starts with `Ace: ` and links the incident.
- Ace skips a mute when an ongoing muting rule already covers it. Ace ends only muting rules it created, never a person's.
- A rule switch records the rules at approval, and Ace refuses it if any of them changed since.

Splunk doesn't let a token read its own role. The **Actions** section shows each action as **Checked when it runs** until the first write. If Splunk refuses that write with 401 or 403, Ace stops muting detectors and proposing rule switches until the connection is checked again.

## What opens an incident

Ace polls Splunk Observability Cloud for alerts every 2 minutes, only while a workload routes it (see [Route alerts to a workload](#3-route-alerts-to-a-workload)). There's no webhook, so detectors need no edits.

- An alert in state `ANOMALOUS`, `TOO_HIGH` or `TOO_LOW` opens an incident or joins the open one. `OK`, `AUTO_RESOLVED`, `MANUALLY_RESOLVED` or `CLEARED` resolves it.
- `STOPPED` means the detector's job stopped, often after an edit. Ace adds it to the incident as context, never as a recovery.
- An alert that fires while a person's muting rule mutes it opens nothing. One that fires again under Ace's own mute still reaches Ace.
- Ace ignores alerts from environments outside **APM environments**, and detectors or rules with `ace:ignore` in the name or label.

| Splunk severity | Severity in Ace |
| --- | --- |
| Critical | Critical |
| Major | High |
| Minor | Medium |
| Warning | Low |
| Info | Joins an open incident as context, never opens one |

Deploy events and detector changes never open an incident.

## Before you start

- The **admin** role in Ace. See [Roles and permissions](https://tryace.dev/docs/security/roles-and-permissions).
- The admin role in Splunk Observability Cloud, to create an org access token.
- Splunk Observability Cloud. Splunk Enterprise and Splunk Cloud Platform are separate products, and this integration doesn't read them.
- Splunk APM for the service map and traces. Without it, Ace reads alerts, detectors, metrics and events.

## Credentials and permissions

Ace uses one org access token of type API and stores it encrypted. Session tokens expire within hours, so they don't work.

| Credential | Permissions | Why Ace needs it |
| --- | --- | --- |
| Org access token | Token type API, role `read_only` | Read detectors, alerts, metrics, APM and events. |
| Same token, only for actions | Role `power` | Create and end muting rules, and switch detector rules. |

Your organization lives in one realm. Find it under your user name > **Organizations** in Splunk's **Settings**, as [View your realm](https://help.splunk.com/en/splunk-observability-cloud/administer/org-reference-info/view-your-realm-api-endpoints-and-organization) shows. Then use your realm's link:

| Realm | Access tokens |
| --- | --- |
| US0 | [Access tokens](https://app.us0.observability.splunkcloud.com/#/organization/current?selectedKeyValue=sf_section:accesstokens) |
| US1 | [Access tokens](https://app.us1.observability.splunkcloud.com/#/organization/current?selectedKeyValue=sf_section:accesstokens) |
| US2 | [Access tokens](https://app.us2.observability.splunkcloud.com/#/organization/current?selectedKeyValue=sf_section:accesstokens) |
| EU0 | [Access tokens](https://app.eu0.observability.splunkcloud.com/#/organization/current?selectedKeyValue=sf_section:accesstokens) |
| EU1 | [Access tokens](https://app.eu1.observability.splunkcloud.com/#/organization/current?selectedKeyValue=sf_section:accesstokens) |
| EU2 | [Access tokens](https://app.eu2.observability.splunkcloud.com/#/organization/current?selectedKeyValue=sf_section:accesstokens) |
| AU0 | [Access tokens](https://app.au0.observability.splunkcloud.com/#/organization/current?selectedKeyValue=sf_section:accesstokens) |
| JP0 | [Access tokens](https://app.jp0.observability.splunkcloud.com/#/organization/current?selectedKeyValue=sf_section:accesstokens) |
| SG0 | [Access tokens](https://app.sg0.observability.splunkcloud.com/#/organization/current?selectedKeyValue=sf_section:accesstokens) |

## Set up

### 1. Create an org access token

1. In Splunk Observability Cloud, open **Settings** > **Access Tokens** from your realm's link above, and choose **New Token**. See [Org access tokens](https://help.splunk.com/en/splunk-observability-cloud/administer/authentication-and-security/authentication-tokens/org-access-tokens).
2. Name it Ace and choose **API token**.
3. Give it the `read_only` role, or `power` if Ace should mute detectors and switch detector rules. Choose **Next**.
4. Choose who can read the token, and choose **Next**.
5. Set an expiration date and choose **Create**. Copy the token.

### 2. Connect Splunk Observability Cloud

1. Open [**Settings** > **Integrations** > **Splunk Observability Cloud**](https://app.tryace.dev/settings/integrations/splunk_observability).
2. Under **Create an org access token in Splunk Observability Cloud**, choose your **Realm**. **Open Splunk Observability Cloud access tokens** opens that realm's page.
3. Under **Paste the access token**, fill in the form:

   | Field | What to enter |
   | --- | --- |
   | **Access token** | The token you copied. |
   | **APM environments** | Optional. `sf_environment` values, comma-separated, up to 20. Empty maps and alerts from every environment. |

4. Choose **Connect Splunk Observability Cloud**. Ace checks that the token can read detectors, alerts and events. If a check fails, Ace doesn't save the token.

### 3. Route alerts to a workload

Open the workload's settings at **Alerts** (`https://app.tryace.dev/workloads/<workload-id>/settings/alerts`). Tick Splunk Observability Cloud under **Sources** and turn on **Investigate alerts**.

### 4. Allow actions (optional)

In the [**Actions** section](https://app.tryace.dev/settings/integrations/splunk_observability#actions), turn the switch **On**. The token needs the `power` role.

## Set up with an agent

Copy this prompt into a coding agent, or open it in one with the logos below it. The agent does the Splunk Observability Cloud side in your terminal and asks you for each decision and each step in a browser. See [how agent setup works](https://tryace.dev/docs/integrations#set-up-with-an-agent).

Give your coding agent this prompt:

```text
Help me connect Splunk Observability Cloud to Ace. Read https://tryace.dev/docs/integrations/splunk-observability/agent.md and follow it step by step. Ask me whenever you need a decision or something only I can do.
```

## Confirm it's working

- The page header shows **Connected**. The connection card shows **Access token** and when Ace last synced.
- **Sync now** checks the token again: **Access token**, **Alerts read** and **Events read**. Failed checks appear under the card.
- With actions on, the **Actions** section lists each action as **Checked when it runs**. After Splunk refuses a write, it shows **Missing from the credential** and names the `power` role. Grant it, then choose **Sync now**.
- If polling fails for 10 minutes, the header shows **Needs attention**.

To change the token, realm or environments, choose **Update credentials** (the gear on the card), then **Save and test**.

## Disconnect

1. In [**Settings** > **Integrations** > **Splunk Observability Cloud**](https://app.tryace.dev/settings/integrations/splunk_observability), choose **Disconnect**, then **Disconnect Splunk Observability Cloud**. A muting rule Ace created still ends on its own.
2. In Splunk Observability Cloud, open **Settings** > **Access Tokens** and choose **Deactivate** from the Ace token's actions menu. Splunk doesn't delete tokens.

## Next steps

- [Actions and approvals](https://tryace.dev/docs/concepts/actions-and-approvals): how observability updates and undo work.
- [New Relic](https://tryace.dev/docs/integrations/new-relic) and [Datadog](https://tryace.dev/docs/integrations/datadog): other observability tools that mute during a fix.
- [Integrations](https://tryace.dev/docs/integrations): connect more data sources.
