Module Import alias ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list
N/A N/A sys splunklib.modularinput.event ET N/A N/A cStringIO StringIO N/A N/A N/A ImportError N/A StringIO StringIO EventWriter N/A object N/A N/A ``EventWriter`` writes events and error messages to Splunk from a modular input.

    Its two important methods are ``writeEvent``, which takes an ``Event`` object,
    and ``log``, which takes a severity and an error message.
     N/A DEBUG DEBUG N/A INFO INFO N/A WARN WARN N/A ERROR ERROR N/A FATAL FATAL __init__ N/A N/A self output error N/A N/A sys stdout N/A sys stderr N/A N/A 
        :param output: Where to write the output; defaults to sys.stdout.
        :param error: Where to write any errors; defaults to sys.stderr.
         N/A N/A self _out output N/A N/A self _err error N/A N/A self header_written False N/A write_event N/A N/A self event N/A N/A N/A Writes an ``Event`` object to Splunk.

        :param event: An ``Event`` object.
         N/A N/A N/A self header_written N/A N/A N/A N/A N/A self _out write <stream> N/A N/A self header_written True N/A N/A N/A event write_to N/A self _out N/A log N/A N/A self severity message N/A N/A N/A Logs messages about the state of this modular input to Splunk.
        These messages will show up in Splunk's internal logs.

        :param severity: ``string``, severity of message, see severites defined as class constants.
        :param message: ``string``, message to log.
         N/A N/A N/A N/A self _err write N/A %s %s
 N/A severity message N/A N/A N/A N/A self _err flush N/A write_xml_document N/A N/A self document N/A N/A N/A Writes a string representation of an
        ``ElementTree`` object to the output stream.

        :param document: An ``ElementTree`` object.
         N/A N/A N/A N/A self _out write N/A N/A ET tostring document N/A N/A N/A N/A self _out flush N/A close N/A N/A self N/A N/A N/A Write the closing </stream> tag to make this XML well formed. N/A N/A N/A N/A self _out write </stream> N/A N/A