mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-24 13:42:05 +02:00
17 lines
443 B
Django/Jinja
17 lines
443 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 [event_type] == "sflow" {
|
|
elasticsearch {
|
|
hosts => "{{ ES }}"
|
|
index => "so-flow-%{+YYYY.MM.dd}"
|
|
template_name => "so-flow"
|
|
template => "/templates/so-flow-template.json"
|
|
template_overwrite => true
|
|
}
|
|
}
|
|
}
|