lib/fluent/plugin/out_grepcounter.rb in fluent-plugin-grepcounter-0.1.0.pre vs lib/fluent/plugin/out_grepcounter.rb in fluent-plugin-grepcounter-0.1.1

- old
+ new

@@ -7,11 +7,11 @@ config_param :count_interval, :time, :default => 5 config_param :exclude, :string, :default => nil config_param :threshold, :integer, :default => 1 config_param :output_tag, :string, :default => nil config_param :add_tag_prefix, :string, :default => 'count' - config_param :output_delimiter, :string, :default => nil + config_param :output_with_joined_delimiter, :string, :default => nil config_param :aggregate, :string, :default => 'tag' attr_accessor :matches attr_accessor :last_checked @@ -113,10 +113,10 @@ def generate_output(count, matches, tag = nil) return nil if count < @threshold output = {} output['count'] = count - output['message'] = @output_delimiter.nil? ? matches : matches.join(@output_delimiter) + output['message'] = @output_with_joined_delimiter.nil? ? matches : matches.join(@output_with_joined_delimiter) if tag output['input_tag'] = tag output['input_tag_last'] = tag.split('.').last end output