b7a6ceb086
This set of playbooks install an Elasticsearch cluster, Logstash and a kibana dashboard inside containers and then install Topbeat in your cloud to ship system metrics to the Elastic cluster. Change-Id: I0c8c853ee48bd9278bd7b08719be4bde5f8c3df6
10 lines
530 B
Django/Jinja
10 lines
530 B
Django/Jinja
output {
|
|
elasticsearch {
|
|
hosts => {% set IP_ARR=[] %}{% for host in groups['elastic-logstash'] | union(groups['kibana']) %}{% if IP_ARR.insert(loop.index,hostvars[host]['ansible_ssh_host']) %}{% endif %}{% endfor %}[{{ IP_ARR | map('regex_replace', '$', ':' ~ elastic_port|string()) | map('regex_replace', '$', '"') | map('regex_replace', '^', '"') | list | join(',' ) }}]
|
|
sniffing => true
|
|
manage_template => false
|
|
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
|
|
document_type => "%{[@metadata][type]}"
|
|
}
|
|
}
|