Logstash Module - Add Jinja for output plugins

This commit is contained in:
Mike Reeves
2018-09-14 14:32:27 -04:00
parent cb988eefde
commit a413b7594d
19 changed files with 39 additions and 21 deletions
@@ -1,3 +1,4 @@
{%- set ES = salt['pillar.get']('mainip'. '') %}
# Author: Justin Henderson
# SANS Instructor and author of SANS SEC555: SIEM and Tactical Analytics
# Email: justin@hasecuritysolution.com
@@ -13,7 +14,7 @@ filter {
output {
if [event_type] == "esxi" and "test_data" not in [tags] {
elasticsearch {
hosts => elasticsearch
hosts => {{ ES }}
template => "/logstash-template.json"
}
}