elastic pipeline test

This commit is contained in:
Mike Reeves
2021-05-26 14:22:14 -04:00
parent b525cfc787
commit bfcde15a24

View File

@@ -0,0 +1,20 @@
{%- if grains['role'] == 'so-eval' -%}
{%- set ES = salt['pillar.get']('manager:mainip', '') -%}
{%- else %}
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
{%- endif %}
output {
if [event][module] == 'elasticsearch' {
elasticsearch {
id => "elastic_logs"
pipeline => "filebeat-%{[agent][version]}-elasticsearch-%{[fileset][name]}-pipeline"
hosts => "{{ ES }}"
index => "so-grid-%{+YYYY.MM.dd}"
template_name => "so-common"
template => "/templates/so-common-template.json"
template_overwrite => true
ssl => true
ssl_certificate_verification => false
}
}
}