hinzufügen von ILM und Templates in der Elastic Rolle
parent
aef0b9652a
commit
5c2316747d
@ -1,6 +1,16 @@
|
|||||||
---
|
---
|
||||||
elastic_cluster_settings_max_shards: 1000
|
|
||||||
|
|
||||||
# We use a proxy due to blocked ip addresses by elastic
|
# We use a proxy due to blocked ip addresses by elastic
|
||||||
filebeat_image_name: "{{ shared_service_hostname_harbor }}/docker.elastic.co/beats/filebeat"
|
filebeat_image_name: "{{ shared_service_hostname_harbor }}/docker.elastic.co/beats/filebeat"
|
||||||
metricbeat_image_name: "{{ shared_service_hostname_harbor }}/docker.elastic.co/beats/metricbeat"
|
metricbeat_image_name: "{{ shared_service_hostname_harbor }}/docker.elastic.co/beats/metricbeat"
|
||||||
|
|
||||||
|
elastic_cluster_settings_max_shards: 1000
|
||||||
|
|
||||||
|
ilm_configuration:
|
||||||
|
- name: default_housekeeping
|
||||||
|
strategy: delete_after
|
||||||
|
retention: 60d
|
||||||
|
priority: 200
|
||||||
|
template: "default_housekeeping"
|
||||||
|
patterns:
|
||||||
|
- "{{ stage }}-*"
|
||||||
|
- "uncategorized-*"
|
||||||
|
|||||||
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"policy": {
|
||||||
|
"phases": {
|
||||||
|
"hot": {
|
||||||
|
"min_age": "0ms",
|
||||||
|
"actions": {}
|
||||||
|
},
|
||||||
|
"delete": {
|
||||||
|
"min_age": "{{ configuration.retention }}",
|
||||||
|
"actions": {
|
||||||
|
"delete": {
|
||||||
|
"delete_searchable_snapshot": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"_meta": {
|
||||||
|
"description": "ILM Policy for {{ configuration.retention }} delete",
|
||||||
|
"managed": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"priority": {{ configuration.priority }},
|
||||||
|
"template": {
|
||||||
|
"settings": {
|
||||||
|
"index.lifecycle.name": "{{ configuration.name }}"
|
||||||
|
},
|
||||||
|
"mappings": {}
|
||||||
|
},
|
||||||
|
"index_patterns": {{ configuration.patterns | to_json }}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue