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

By default, spaces is enabled in {kib}. To secure spaces, <<security-settings-kb,enable security>>.

`xpack.spaces.maxSpaces`::
The maximum number of spaces that you can use with the {kib} instance. Some {kib} operations
return all spaces using a single `_search` from {es}, so you must
configure this setting lower than the `index.max_result_window` in {es}.
The default is `1000`.
