mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-16 05:53:09 +01:00
27 lines
962 B
Django/Jinja
27 lines
962 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 ES_USER = salt['pillar.get']('elasticsearch:auth:users:so_elastic_user:user', '') %}
|
|
{%- set ES_PASS = salt['pillar.get']('elasticsearch:auth:users:so_elastic_user:pass', '') %}
|
|
output {
|
|
if "filebeat" in [metadata][pipeline] {
|
|
elasticsearch {
|
|
id => "filebeat_modules_metadata_pipeline"
|
|
pipeline => "%{[metadata][pipeline]}"
|
|
hosts => "{{ ES }}"
|
|
{% if salt['pillar.get']('elasticsearch:auth:enabled') is sameas true %}
|
|
user => "{{ ES_USER }}"
|
|
password => "{{ ES_PASS }}"
|
|
{% endif %}
|
|
index => "so-%{[event][module]}-%{+YYYY.MM.dd}"
|
|
template_name => "so-common"
|
|
template => "/templates/so-common-template.json"
|
|
template_overwrite => true
|
|
ssl => true
|
|
ssl_certificate_verification => false
|
|
}
|
|
}
|
|
}
|