mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-25 05:57:49 +02:00
18 lines
476 B
Django/Jinja
18 lines
476 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 [module] =~ "syslog" {
|
|
elasticsearch {
|
|
pipeline => "%{module}"
|
|
hosts => "{{ ES }}"
|
|
index => "so-syslog-%{+YYYY.MM.dd}"
|
|
template_name => "so-syslog"
|
|
template => "/templates/so-syslog-template.json"
|
|
template_overwrite => true
|
|
}
|
|
}
|
|
}
|