[role="xpack"]
[[spaces-settings-kb]]
=== Spaces settings in {kib}
++++
<titleabbrev>Spaces settings</titleabbrev>
++++

By default, Spaces is enabled in Kibana, and you can secure Spaces using
roles when Security is enabled.

[float]
[[spaces-settings]]
==== Spaces settings

[cols="2*<"]
|===
| `xpack.spaces.enabled`
  | Set to `true` (default) to enable Spaces in {kib}.

| `xpack.spaces.maxSpaces`
  | The maximum amount of Spaces that can be used with this instance of {kib}. Some operations
  in {kib} return all spaces using a single `_search` from {es}, so this must be
  set lower than the `index.max_result_window` in {es}.
  Defaults to `1000`.

|===
