mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 10:42:54 +01:00
26 lines
581 B
Plaintext
26 lines
581 B
Plaintext
{%- if grains['role'] == 'so-eval' -%}
|
|
{%- set ES = salt['pillar.get']('master:mainip', '') -%}
|
|
{%- else %}
|
|
{%- set ES = salt['pillar.get']('node:mainip', '') -%}
|
|
{%- endif %}
|
|
# Author: Wes Lambert
|
|
# Last Update: 09/14/2018
|
|
filter {
|
|
if "beat" in [tags] {
|
|
mutate {
|
|
##add_tag => [ "conf_file_9500"]
|
|
}
|
|
}
|
|
}
|
|
output {
|
|
if "beat" in [tags] {
|
|
elasticsearch {
|
|
hosts => "{{ ES }}"
|
|
index => "logstash-beats-%{+YYYY.MM.dd}"
|
|
template_name => "logstash-beats"
|
|
template => "/beats-template.json"
|
|
template_overwrite => true
|
|
}
|
|
}
|
|
}
|