Class: Fluent::Plugin::WinevtSAXparser
- Inherits:
-
Parser
- Object
- Parser
- Fluent::Plugin::WinevtSAXparser
- Defined in:
- lib/fluent/plugin/parser_winevt_sax.rb
Instance Method Summary collapse
- #parse(text) {|time, evtxml.result| ... } ⇒ Object
- #preserve_qualifiers? ⇒ Boolean
- #winevt_xml? ⇒ Boolean
Instance Method Details
#parse(text) {|time, evtxml.result| ... } ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/fluent/plugin/parser_winevt_sax.rb', line 19 def parse(text) evtxml = WinevtXMLDocument.new(@preserve_qualifiers) parser = Nokogiri::XML::SAX::Parser.new(evtxml) parser.parse(text) time = @estimate_current_event ? Fluent::EventTime.now : nil yield time, evtxml.result end |
#preserve_qualifiers? ⇒ Boolean
15 16 17 |
# File 'lib/fluent/plugin/parser_winevt_sax.rb', line 15 def preserve_qualifiers? @preserve_qualifiers end |
#winevt_xml? ⇒ Boolean
11 12 13 |
# File 'lib/fluent/plugin/parser_winevt_sax.rb', line 11 def winevt_xml? true end |