Files
securityonion/salt/logstash/files/dynamic/9031_output_iis.conf
2018-09-18 17:43:03 -04:00

25 lines
604 B
Plaintext

{%- if grains['role'] != 'so-master' %}
{%- set ES = salt['pillar.get']('mainip'. '') %}
# 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] == "iis" and "test_data" not in [tags] {
mutate {
##add_tag => [ "conf_file_9031"]
}
}
}
output {
if [event_type] == "iis" and "test_data" not in [tags] {
#stdout { codec => rubydebug }
elasticsearch {
hosts => {{ ES }}
template => "/logstash-template.json"
}
}
}
{%- endif %}