Logstash Module - Add missing quotes

This commit is contained in:
Mike Reeves
2018-10-05 13:09:02 -04:00
parent 9a79a89155
commit 9d62bbeed2
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ filter {
output { output {
if "beat" in [tags] { if "beat" in [tags] {
elasticsearch { elasticsearch {
hosts => {{ ES }} hosts => "{{ ES }}"
index => "logstash-beats-%{+YYYY.MM.dd}" index => "logstash-beats-%{+YYYY.MM.dd}"
template_name => "logstash-beats" template_name => "logstash-beats"
template => "/beats-template.json" template => "/beats-template.json"

View File

@@ -16,7 +16,7 @@ filter {
output { output {
if [event_type] =~ "ossec" or "ossec" in [tags] { if [event_type] =~ "ossec" or "ossec" in [tags] {
elasticsearch { elasticsearch {
hosts => {{ ES }} hosts => "{{ ES }}"
index => "logstash-ossec-%{+YYYY.MM.dd}" index => "logstash-ossec-%{+YYYY.MM.dd}"
template_name => "logstash-ossec" template_name => "logstash-ossec"
template => "/logstash-ossec-template.json" template => "/logstash-ossec-template.json"