# Can kibana 7.4.2 enable automatic monthly auto-creation of indexes for different spaces?

**URL:** <https://discuss.elastic.co/t/can-kibana-7-4-2-enable-automatic-monthly-auto-creation-of-indexes-for-different-spaces/354613>\
**Category:** Kibana\
**Created:** [March 4, 2024, 3:34am UTC](https://discuss.elastic.co/t/can-kibana-7-4-2-enable-automatic-monthly-auto-creation-of-indexes-for-different-spaces/354613 "2024-03-04T03:34:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wangyu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wangyu/32/132303_2.png) [@wangyu](https://discuss.elastic.co/u/wangyu)\
**Post date:** [March 4, 2024, 3:34am UTC](https://discuss.elastic.co/t/can-kibana-7-4-2-enable-automatic-monthly-auto-creation-of-indexes-for-different-spaces/354613/1 "2024-03-04T03:34:34Z")

</div>

I use space in ELK to put different indexes in different space：

 ![10](https://us1.discourse-cdn.com/elastic/original/3X/e/a/ea9f641b50a6b91d000e2cc97641c257cb04846a.jpeg)

my indexes are created on a monthly basis, part of my logstash is configured as shown below:

 ![11](https://us1.discourse-cdn.com/elastic/original/3X/d/8/d88f6f03950844df7db70a9833775f6750864273.png)

Currently I create indexes manually, is it possible to create indexes automatically for different spaces every month? If so, how should I do it? If not, is there an interface that I can write a script to do so?

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [March 8, 2024, 11:44am UTC](https://discuss.elastic.co/t/can-kibana-7-4-2-enable-automatic-monthly-auto-creation-of-indexes-for-different-spaces/354613/2 "2024-03-08T11:44:22Z")

</div>

Indexes are created at the cluster and are not tied to any Kibana Space. Index patterns are a Kibana entity that is tied to a Space. You are using a very old version of the stack without [API](https://www.elastic.co/guide/en/kibana/7.4/api.html) to create index patterns. If you upgrade at least to 7.17 then you will be able to create index patterns programmatically on any space.

> **[Create index pattern API | Kibana Guide \[7.17\] | Elastic](https://www.elastic.co/guide/en/kibana/7.17/index-patterns-api-create.html)**
>
> Kibana provides you with several options to share \*Discover\* saved searches, dashboards, \*Visualize Library\* visualizations, and \*Canvas\* workpads with others, or on a website.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 5, 2024, 11:44am UTC](https://discuss.elastic.co/t/can-kibana-7-4-2-enable-automatic-monthly-auto-creation-of-indexes-for-different-spaces/354613/3 "2024-04-05T11:44:45Z")

</div>

Closed on April 5, 2024, 11:44am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
