mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
19 lines
470 B
Django/Jinja
19 lines
470 B
Django/Jinja
{%- if grains['role'] == 'so-eval' -%}
|
|
{%- set ES = salt['pillar.get']('manager:mainip', '') -%}
|
|
{%- else %}
|
|
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
|
{%- endif %}
|
|
|
|
output {
|
|
if "beat-ext" in [tags] {
|
|
elasticsearch {
|
|
pipeline => "beats.common"
|
|
hosts => "{{ ES }}"
|
|
index => "so-beats-%{+YYYY.MM.dd}"
|
|
template_name => "so-common"
|
|
template => "/so-common-template.json"
|
|
template_overwrite => true
|
|
}
|
|
}
|
|
}
|