diff --git a/lib/fluent/parser.rb b/lib/fluent/parser.rb index 2f12293841..2724bb861d 100644 --- a/lib/fluent/parser.rb +++ b/lib/fluent/parser.rb @@ -169,6 +169,18 @@ def call(text) end end + class NoneParser + include Configurable + + config_param :message_key, :string, :default => 'message' + + def call(text) + record = {} + record[@message_key] = text + return Engine.now, record + end + end + class ApacheParser include Configurable @@ -229,6 +241,7 @@ def call(text) 'ltsv' => Proc.new { LabeledTSVParser.new }, 'csv' => Proc.new { CSVParser.new }, 'nginx' => Proc.new { RegexpParser.new(/^(?[^ ]*) (?[^ ]*) (?[^ ]*) \[(?