![](/img/trans.png)
[英]Are there any preferences to take snapshots of individual indices or to take snapshots of the whole cluster in Elasticsearch?
[英]Exclude indices from elasticsearch snapshots
我需要從彈性快照中排除一些索引,在快照文檔中,他們提到您可以包含您需要的索引,但我需要其他方式,因為我需要對除少數索引之外的所有索引進行快照。
我發現在排除任何內容之前,您需要包含所有內容。 這是對我有用的語法,例如包括除 filebeat 和 metricbeat 索引之外的所有索引:
*,-filebeat-*,-metricbeat-*
(我發布了一個答案,因為我無法發表評論......)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.