---
type: api
title: "Get the global SLO settings"
description: "Global SLO settings apply to all spaces. You must have all privileges for the SLOs feature in the Observability section of the Kibana feature privileges in all spaces. The response holds the saved settings and the resolved settings, which the xpack.slo.sliRetention setting in kibana.yml can override. [Required authorization] Route required privileges: slo_write."
url: https://www.elastic.co/elastic/docs-builder/docs/5106/api/kibana-serverless/operation/operation-getsloglobalsettingsop
resource: https://www.elastic.co/elastic/docs-builder/docs/5106/api/kibana-serverless/operation/operation-getsloglobalsettingsop
products:
  - Kibana
---

# Get the global SLO settings

Authentication: required

Availability: Preview

- Server: `https://{kibana_url}`

## Paths

- `GET` `/api/observability/slo_settings/global`
- `GET` `/s/{space_id}/api/observability/slo_settings/global`

#### Path parameters

- `space_id` (string) — optional
  An identifier for the space. If `space_id` is not provided in the URL, the default space is used. Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

## Description

Global SLO settings apply to all spaces. You must have `all` privileges for the **SLOs** feature in the **Observability** section of the Kibana feature privileges in all spaces. The response holds the saved settings and the resolved settings, which the `xpack.slo.sliRetention` setting in `kibana.yml` can override.

## Required privileges

- Privileges: `slo_write`

## Request body

`application/json`

Any of:
- **object**
- **object**

## Responses

#### `200`

Successful request

`application/json`

- `sliRetention` (object)
  `enabled` and `periodDays` hold the saved values, or the defaults when nothing was saved.
  - `effective` (object)
    - `enabled` (boolean)
      Indicates if SLI retention is enabled
    - `periodDays` (integer · min: 1 · max: 9007199254740991)
      The number of days of SLI data to keep
    - `source` (enum)
      Where the resolved value comes from: `default` is the built-in value, `settings` is the saved value, and `config` is the `xpack.slo.sliRetention` setting in `kibana.yml`
      Values: `default`, `settings`, `config`
  - `enabled` (boolean)
    Indicates if dated SLI indices older than the retention period are deleted
  - `periodDays` (integer · min: 1 · max: 9007199254740991)
    The number of days of SLI data kept when SLI retention is enabled
  - `updatedAt` (string · format: date-time · max length: 128) — nullable
    When the SLI retention was last saved, or null when it was never saved
#### `401`

Unauthorized response

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (number)
#### `403`

Forbidden response

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (number)
## Code examples

#### Console

```console
GET kbn:/api/observability/slo_settings/global
{}
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/observability/slo_settings/global" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Response examples

#### Saved settings overridden in kibana.yml

`application/json`

```json
{
  "sliRetention": {
    "effective": {
      "enabled": true,
      "periodDays": 200,
      "source": "config"
    },
    "enabled": false,
    "periodDays": 400,
    "updatedAt": "2026-11-20T10:00:00.000Z"
  }
}
```

#### Global SLO settings that were never saved

`application/json`

```json
{
  "sliRetention": {
    "effective": {
      "enabled": false,
      "periodDays": 365,
      "source": "default"
    },
    "enabled": false,
    "periodDays": 365,
    "updatedAt": "null"
  }
}
```

#### Unauthorized

`application/json`

```json
{
  "error": "Unauthorized",
  "message": "[security_exception\n\tRoot causes:\n\t\tsecurity_exception: unable to authenticate user [elastic] for REST request [/_security/_authenticate]]: unable to authenticate user [elastic] for REST request [/_security/_authenticate]",
  "statusCode": 401
}
```

#### Missing the SLO privilege in some spaces

`application/json`

```json
{
  "error": "Forbidden",
  "message": "Global SLO settings require the SLO \u0022All\u0022 privilege in all spaces",
  "statusCode": 403
}
```

