commit
04bf1f5510
@ -1,3 +1,3 @@
|
|||||||
- hosts: <your logstash host>
|
- hosts: <your logstash host>
|
||||||
roles:
|
roles:
|
||||||
- { role: /etc/ansible/roles/wazuh-ansible/roles/elastic-stack/ansible-logstash, elasticsearch_network_host: 'localhost' }
|
- { role: /etc/ansible/roles/wazuh-ansible/roles/elastic-stack/ansible-logstash, elasticsearch_network_host: ["localhost"] }
|
||||||
|
|||||||
@ -2,7 +2,10 @@
|
|||||||
logstash_create_config: true
|
logstash_create_config: true
|
||||||
logstash_input_beats: false
|
logstash_input_beats: false
|
||||||
|
|
||||||
elasticsearch_network_host: "127.0.0.1"
|
#You can introduce Multiples IPs
|
||||||
|
# elasticseacrh_network_host: ["Localhost1", "Localhost2", "Localhost3", ...]
|
||||||
|
elasticsearch_network_host: ["Localhost"]
|
||||||
|
|
||||||
elasticsearch_http_port: "9200"
|
elasticsearch_http_port: "9200"
|
||||||
elasticsearch_shards: 5
|
elasticsearch_shards: 5
|
||||||
elasticsearch_replicas: 1
|
elasticsearch_replicas: 1
|
||||||
|
|||||||
@ -66,7 +66,7 @@ filter {
|
|||||||
output {
|
output {
|
||||||
#stdout { codec => rubydebug }
|
#stdout { codec => rubydebug }
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
hosts => ["{{ elasticsearch_network_host }}:{{ elasticsearch_http_port }}"]
|
hosts => {{ elasticsearch_network_host | to_json}}
|
||||||
index => "wazuh-alerts-3.x-%{+YYYY.MM.dd}"
|
index => "wazuh-alerts-3.x-%{+YYYY.MM.dd}"
|
||||||
document_type => "wazuh"
|
document_type => "wazuh"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user