mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-01-07 08:43:19 +01:00
19 lines
490 B
Django/Jinja
19 lines
490 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"
|
|
template_name => "so-flow"
|
|
template => "/templates/so-flow-template.json"
|
|
template_overwrite => true
|
|
ssl => true
|
|
ssl_certificate_verification => false
|
|
}
|
|
}
|
|
}
|