-
-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default Stack Version
7.3.0
=> 7.4.0
⬆️
Signed-off-by: Sherif Abdel-Naby <[email protected]>
- Loading branch information
1 parent
31b79a0
commit 192ce86
Showing
4 changed files
with
68 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,39 @@ | ||
actions: | ||
1: | ||
action: snapshot | ||
description: >- | ||
Snapshot indices to the configured Elasticsearch Repository. | ||
Snapshots into => `elasticsearch-snapshot-%Y.%m.%d-%H:%M:%S` | ||
options: | ||
repository: elasticsearch-backup | ||
name: elasticsearch-snapshot-%Y.%m.%d-%H:%M | ||
include_global_state: True | ||
wait_for_completion: True | ||
ignore_empty_list: True | ||
max_wait: -1 | ||
wait_interval: 20 | ||
allow_ilm_indices: true | ||
filters: | ||
- filtertype: pattern | ||
kind: regex | ||
value: '^(filebeat-|logstash-|.kibana).*$' | ||
2: | ||
action: delete_snapshots | ||
description: >- | ||
Delete snapshots older than configured | ||
options: | ||
repository: elasticsearch-backup | ||
retry_interval: 30 | ||
retry_count: 2 | ||
ignore_empty_list: True | ||
disable_action: false | ||
filters: | ||
- filtertype: pattern | ||
kind: prefix | ||
value: elasticsearch-snapshot- | ||
- filtertype: age | ||
source: creation_date | ||
direction: older | ||
unit: days | ||
unit_count: 180 | ||
# Starting from 7.4.0, Automated Snapshot can be configured natively on Elasticsearch (Snapshot Lifecycle Policy) | ||
#actions: | ||
# 1: | ||
# action: snapshot | ||
# description: >- | ||
# Snapshot indices to the configured Elasticsearch Repository. | ||
# Snapshots into => `elasticsearch-snapshot-%Y.%m.%d-%H:%M:%S` | ||
# options: | ||
# repository: elasticsearch-backup | ||
# name: elasticsearch-snapshot-%Y.%m.%d-%H:%M | ||
# include_global_state: True | ||
# wait_for_completion: True | ||
# ignore_empty_list: True | ||
# max_wait: -1 | ||
# wait_interval: 20 | ||
# allow_ilm_indices: true | ||
# filters: | ||
# - filtertype: pattern | ||
# kind: regex | ||
# value: '^(filebeat-|logstash-|.kibana).*$' | ||
# 2: | ||
# action: delete_snapshots | ||
# description: >- | ||
# Delete snapshots older than configured | ||
# options: | ||
# repository: elasticsearch-backup | ||
# retry_interval: 30 | ||
# retry_count: 2 | ||
# ignore_empty_list: True | ||
# disable_action: false | ||
# filters: | ||
# - filtertype: pattern | ||
# kind: prefix | ||
# value: elasticsearch-snapshot- | ||
# - filtertype: age | ||
# source: creation_date | ||
# direction: older | ||
# unit: days | ||
# unit_count: 180 |