Spaces settings in Kibanaedit

By default, spaces is enabled in Kibana. To secure spaces, enable security.

xpack.spaces.maxSpaces
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.