mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-16 05:53:09 +01:00
17 lines
452 B
Django/Jinja
17 lines
452 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 "firewall" in [tags] {
|
|
elasticsearch {
|
|
hosts => "{{ ES }}"
|
|
index => "so-firewall-%{+YYYY.MM.dd}"
|
|
template_name => "so-firewall"
|
|
template => "/templates/so-firewall-template.json"
|
|
template_overwrite => true
|
|
}
|
|
}
|
|
}
|