﻿---
title: Spaces settings in Kibana
description: 
url: https://www.elastic.co/elastic/docs-builder/docs/3167/reference/kibana/configuration-reference/spaces-settings
products:
  - Kibana
applies_to:
  - Elastic Cloud on Kubernetes: Generally available
  - Elastic Cloud Enterprise: Generally available
  - Self-managed Elastic deployments: Generally available
---

# Spaces settings in Kibana
By default, spaces is enabled in Kibana. To secure spaces, [enable security](https://www.elastic.co/docs/reference/kibana/configuration-reference/security-settings).

## General settings
<definitions>
  <definition term="xpack.spaces.maxSpaces">
    <supported-on>Self-managed Elastic deployments: Generally available</supported-on>

Set the maximum number of spaces that you can use with the Kibana instance. Some Kibana operations return all spaces using a single `_search` from Elasticsearch, so you must configure this setting lower than the `index.max_result_window` in Elasticsearch. The default is `1000`.
Datatype: `int`
Default: `1000`
  </definition>
  <definition term="xpack.spaces.defaultSolution">
    <stack-availability>Elastic Stack: Generally available since 9.1</stack-availability>
    <supported-on>Self-managed Elastic deployments: Generally available</supported-on>

Set `es`, `oblt`, or `security` as the solution view for your default space.
Datatype: `enum`
Options:
- `es`: Elasticsearch
- `oblt`: Observability
- `security`: Security
  </definition>
</definitions>