mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
28 lines
735 B
Plaintext
28 lines
735 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
|
|
# Email: justin@hasecuritysolution.com
|
|
# Last Update: 12/9/2016
|
|
|
|
filter {
|
|
if [event_type] == "suricata" and "test_data" not in [tags] {
|
|
mutate {
|
|
##add_tag => [ "conf_file_9400"]
|
|
}
|
|
}
|
|
}
|
|
output {
|
|
if [event_type] == "suricata" and "test_data" not in [tags] {
|
|
#stdout { codec => rubydebug }
|
|
elasticsearch {
|
|
hosts => "{{ ES }}"
|
|
index => "logstash-ids-%{+YYYY.MM.dd}"
|
|
template => "/logstash-template.json"
|
|
}
|
|
}
|
|
}
|