Set shards and replicas for wazuh template.

This commit is contained in:
Miguelangel Freitas 2017-08-20 21:15:44 -04:00
parent 2ba65efae7
commit fe2f1d94eb
3 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,8 @@ logstash_input_beats: false
elasticsearch_network_host: "127.0.0.1" elasticsearch_network_host: "127.0.0.1"
elasticsearch_http_port: "9200" elasticsearch_http_port: "9200"
elasticsearch_shards: 5
elasticsearch_replicas: 1
elastic_stack_version: 5.5.0 elastic_stack_version: 5.5.0
logstash_ssl: false logstash_ssl: false

View File

@ -1,3 +1,4 @@
#jinja2: trim_blocks:False
# {{ ansible_managed }} # {{ ansible_managed }}
# Wazuh - Logstash configuration file # Wazuh - Logstash configuration file

View File

@ -3,8 +3,8 @@
"template": "wazuh*", "template": "wazuh*",
"settings": { "settings": {
"index.refresh_interval": "5s", "index.refresh_interval": "5s",
"number_of_shards" : 1, "number_of_shards": {{ elasticsearch_shards }},
"number_of_replicas" : 0 "number_of_replicas": {{ elasticsearch_replicas }}
}, },
"mappings": { "mappings": {
"wazuh": { "wazuh": {