Class: FluentExt::TextParser::LabeledTSVParser

Inherits:
GenericParser show all
Defined in:
lib/fluent/plugin/fixed_parser.rb

Instance Attribute Summary

Attributes inherited from GenericParser

#log

Instance Method Summary collapse

Methods inherited from GenericParser

#initialize, #parse_time

Constructor Details

This class inherits a constructor from FluentExt::TextParser::GenericParser

Instance Method Details

#call(text) ⇒ Object



106
107
108
109
# File 'lib/fluent/plugin/fixed_parser.rb', line 106

def call(text)
  record = Hash[text.split("\t").map{|p| p.split(":", 2)}]
  parse_time(record)
end