Index Snapshot

136 views
Skip to first unread message

Emil David

unread,
Jan 2, 2024, 2:06:47 AM1/2/24
to Wazuh | Mailing List
Hi,
Use the below query to create/restore snapshots.

Can anyone explain the purpose of the below fields? If we are not adding these fields in the query what will happen, what is the advantages/disadvantages  when adding this field.

Checked the below ref docs, can we get more explanation about this?



 

"ignore_unavailable": true, 

  "include_global_state": false 



PUT /_snapshot/elasticsearch/snapshot-1

{ 

  "indices": " wazuh-archives-4.x-2024.01.01", 

  "ignore_unavailable": true, 

  "include_global_state": false 

} 


POST /_snapshot/elasticsearch/snapshot-1/_restore 

{ 

  "indices": " wazuh-archives-4.x-2024.01.01", 

  "ignore_unavailable": true, 

  "include_global_state": false 

} 

Harshal Paliwal

unread,
Jan 2, 2024, 2:10:43 AM1/2/24
to Wazuh | Mailing List
Hi Emil Thanks for using Wazuh!

Allow me some time to check it and I will get back to you with proper updates as soon as possible.

Regards

Emil David

unread,
Jan 2, 2024, 2:21:14 AM1/2/24
to Wazuh | Mailing List
okay, thanks

Harshal Paliwal

unread,
Jan 2, 2024, 2:55:34 AM1/2/24
to Wazuh | Mailing List
Hi Emil,
Thanks for waiting.

There are the below use of these parameters.
ignore_unavailable: If an index from the indices list doesn’t exist, whether to ignore it rather than fail the snapshot. Default is false.
include_global_state: Whether to include cluster state in the snapshot. Default is true.

You can learn more about the snapshots and its parameters.

I hope this information is helpful to you. Please feel free to contact us if you have any questions.
Regards,

Emil David

unread,
Jan 2, 2024, 11:45:31 PM1/2/24
to Wazuh | Mailing List
Hi,
Thanks for your reply.
What is the cluster state?
What is the difference between the snapshot whether include_global_state:  true and include_global_state:  false?

include_global_state:  true - what details will be additional? what are the advantages and disadvantages? Please explain
include_global_state:  false - what details won't be there? what are the advantages and disadvantages? Please explain.

include_global_state: The default value is true. Would there be a problem with a snapshot if we changed it to false?
Can we take the snapshot/restore without the include_global_state value as mentioned below?
Reply all
Reply to author
Forward
0 new messages