close

splunkjs.ModularInputs.EventWriter.close

Writes the closing tag to make the XML well formed.

Syntax

EventWriter.prototype.close = function()

writeEvent

splunkjs.ModularInputs.EventWriter.writeEvent

Writes an Event object to the output stream specified in the constructor.

Syntax

EventWriter.prototype.writeEvent = function(event)

Parameters

Name Type Description
event Object

An Event Object.

writeXMLDocument

splunkjs.ModularInputs.EventWriter.writeXMLDocument

Writes a string representation of an Elementtree Object to the output stream specified in the constructor.

This function will throw an exception if there is an error while making a string from xmlDocument, or while writing the string created from xmlDocument.

Syntax

EventWriter.prototype.writeXMLDocument = function(xmlDocument)

Parameters

Name Type Description
xmlDocument Object

An Elementtree Object representing an XML document.