mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
21 lines
501 B
Django/Jinja
21 lines
501 B
Django/Jinja
{%- if grains['role'] == 'so-eval' -%}
|
|
{%- set ES = salt['pillar.get']('manager:mainip', '') -%}
|
|
{%- else %}
|
|
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
|
{%- endif %}
|
|
# Author: Josh Brower
|
|
# Last Update: 12/29/2018
|
|
# Output to ES for osquery tagged logs
|
|
|
|
|
|
output {
|
|
if [module] =~ "osquery" {
|
|
elasticsearch {
|
|
pipeline => "%{module}.%{dataset}"
|
|
hosts => "{{ ES }}"
|
|
index => "so-osquery-%{+YYYY.MM.dd}"
|
|
template => "/so-common-template.json"
|
|
}
|
|
}
|
|
}
|