mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
29 lines
740 B
Plaintext
29 lines
740 B
Plaintext
{%- if grains['role'] == 'so-eval' -%}
|
|
{%- set ES = salt['pillar.get']('master:mainip', '') -%}
|
|
{%- else %}
|
|
{%- set ES = salt['pillar.get']('node:mainip', '') -%}
|
|
{%- endif %}
|
|
# Author: Justin Henderson
|
|
# SANS Instructor and author of SANS SEC555: SIEM and Tactical Analytics
|
|
# Updated by: Doug Burks
|
|
# Last Update: 5/15/2017
|
|
|
|
filter {
|
|
if "syslog" in [tags] and "test_data" not in [tags] {
|
|
mutate {
|
|
##add_tag => [ "conf_file_9034"]
|
|
}
|
|
}
|
|
}
|
|
output {
|
|
if "syslog" in [tags] and "test_data" not in [tags] {
|
|
elasticsearch {
|
|
hosts => "{{ ES }}"
|
|
index => "logstash-syslog-%{+YYYY.MM.dd}"
|
|
template_name => "logstash"
|
|
template => "/logstash-template.json"
|
|
template_overwrite => true
|
|
}
|
|
}
|
|
}
|