diff --git a/lib/fluent/plugin/parser_syslog.rb b/lib/fluent/plugin/parser_syslog.rb index 778818a145..ea899169d6 100644 --- a/lib/fluent/plugin/parser_syslog.rb +++ b/lib/fluent/plugin/parser_syslog.rb @@ -106,7 +106,7 @@ def parse_plain(text, &block) when "pri" record['pri'] = value.to_i when "time" - time = @mutex.synchronize { @time_parser.parse(value.gsub(/ +/, ' ')) } + time = @mutex.synchronize { @time_parser.parse(value.squeeze(' ')) } record[name] = value if @keep_time_key else record[name] = value