﻿---
title: Spaces settings in Kibana
description: By default, spaces is enabled in Kibana. To secure spaces, enable security. 
url: https://www.elastic.co/elastic/docs-builder/docs/3065/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/elastic/docs-builder/docs/3065/reference/kibana/configuration-reference/security-settings).
<definitions>
  <definition term="xpack.spaces.maxSpaces">
    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`.
  </definition>
  <definition term="xpack.spaces.defaultSolution">
    Set `es`, `oblt`, or `security` as the solution view for your default space. When this is not set, your default solution view is Classic.
  </definition>
</definitions>