How can i disable the automatic index creation in elasticsearch?

前端 未结 3 863
情书的邮戳
情书的邮戳 2021-02-20 06:28

I need to disable automatic index creation for an index but need to permit for another one. How can I disable the automatic index creation by elasticsearch for a particular inde

3条回答
  •  忘了有多久
    2021-02-20 07:12

    "action.auto_create_index" is a bit complex beyond the true/false values. We can use patterns occuring in the index names to be identified and can specify whether it can be created automatically if it is not already existing.

    An example would be

    action.auto_create_index: -b*,+a*,-*
    

    Here the index starting with "a" will be created automatically,but others starting with "b" are not allowed. -* indicates that other indices are not allowed and if you want you need to create them manually.

    Also the order of the values also matters. For details,you can visit their documentation here

提交回复
热议问题