mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 09:42:46 +01:00
30 lines
737 B
Plaintext
30 lines
737 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: 9/19/2018
|
|
|
|
filter {
|
|
if [event_type] =~ "ossec" {
|
|
mutate {
|
|
##add_tag => [ "conf_file_9600"]
|
|
}
|
|
}
|
|
}
|
|
|
|
output {
|
|
if [event_type] =~ "ossec" or "ossec" in [tags] {
|
|
elasticsearch {
|
|
hosts => "{{ ES }}"
|
|
index => "logstash-ossec-%{+YYYY.MM.dd}"
|
|
template_name => "logstash-ossec"
|
|
template => "/logstash-ossec-template.json"
|
|
template_overwrite => true
|
|
}
|
|
}
|
|
}
|