From 2dcb598793de70294ff60e40f93e293edb219461 Mon Sep 17 00:00:00 2001 From: Vimal Kumar Date: Thu, 2 Sep 2021 14:43:01 +0530 Subject: [PATCH] LOG-1494: Fix syslog serialization --- .../lib/fluent/plugin/out_remote_syslog.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fluentd/lib/fluent-plugin-remote_syslog/lib/fluent/plugin/out_remote_syslog.rb b/fluentd/lib/fluent-plugin-remote_syslog/lib/fluent/plugin/out_remote_syslog.rb index d0f97b7893..528ea5ac6f 100644 --- a/fluentd/lib/fluent-plugin-remote_syslog/lib/fluent/plugin/out_remote_syslog.rb +++ b/fluentd/lib/fluent-plugin-remote_syslog/lib/fluent/plugin/out_remote_syslog.rb @@ -78,8 +78,9 @@ def close end def format(tag, time, record) + require 'json' r = inject_values_to_record(tag, time, record) - @formatter.format(tag, time, r) + r.to_json << "\n" end def write(chunk)