From 799a42d2ffd9ccfd5d140cf7d3f47f0bd60772c8 Mon Sep 17 00:00:00 2001 From: Joe Goller Date: Wed, 3 Apr 2019 09:07:34 -0700 Subject: [PATCH] Enables codec entries for outputs in the ingestor_syslog job. When settings the property ingestor_syslog.ouputs with additional logstash outputs the codec field was being set to an string. According to the documentation the codec field value for any available output is an object and not a string or integer. Signed-off-by: Alan Moran --- .../templates/config/input_and_output.conf.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jobs/ingestor_syslog/templates/config/input_and_output.conf.erb b/jobs/ingestor_syslog/templates/config/input_and_output.conf.erb index 2029d212..91bd8e06 100644 --- a/jobs/ingestor_syslog/templates/config/input_and_output.conf.erb +++ b/jobs/ingestor_syslog/templates/config/input_and_output.conf.erb @@ -72,7 +72,11 @@ output { %> <% end %> <% output['options'].each do | k, v | %> - <%= k %> => <%= v.inspect %> + <% if k == 'codec' %> + <%= k %> => <%= v %> + <% else %> + <%= k %> => <%= v.inspect %> + <% end %> <% end %> } <% end %>