Class: Fluent::Plugin::WinevtSAXparser

Inherits:
Parser
  • Object
show all
Defined in:
lib/fluent/plugin/parser_winevt_sax.rb

Instance Method Summary collapse

Instance Method Details

#parse(text) {|time, evtxml.result| ... } ⇒ Object

Yields:

  • (time, evtxml.result)


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

Returns:

  • (Boolean)


15
16
17
# File 'lib/fluent/plugin/parser_winevt_sax.rb', line 15

def preserve_qualifiers?
  @preserve_qualifiers
end

#winevt_xml?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/fluent/plugin/parser_winevt_sax.rb', line 11

def winevt_xml?
  true
end