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

View File

@@ -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 "test_data" in [tags] {
elasticsearch {
hosts => elasticsearch
hosts => {{ ES }}
index => "logstash-test-%{+YYYY.MM.dd}"
template => "/logstash-template.json"
}