mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
24 lines
687 B
Django/Jinja
24 lines
687 B
Django/Jinja
{%- if grains['role'] == 'so-eval' -%}
|
|
{%- set ES = salt['pillar.get']('manager:mainip', '') -%}
|
|
{%- else %}
|
|
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
|
{%- endif %}
|
|
{% set FEATURES = salt['pillar.get']('elastic:features', False) %}
|
|
output {
|
|
if [module] =~ "strelka" {
|
|
elasticsearch {
|
|
pipeline => "%{module}.%{dataset}"
|
|
hosts => "{{ ES }}"
|
|
index => "so-strelka"
|
|
template_name => "so-strelka"
|
|
template => "/templates/so-strelka-template.json"
|
|
template_overwrite => true
|
|
{%- if grains['role'] in ['so-node','so-heavynode'] %}
|
|
ssl => true
|
|
ssl_certificate_verification => false
|
|
{%- endif %}
|
|
}
|
|
}
|
|
}
|
|
|