def write_event(self, event):

        if not self.header_written:
            self._out.write("<stream>")
            self.header_written = True

        event.write_to(self._out)
Writes an ``Event`` object to Splunk.
dataset/ETHPy150Open splunk/splunk-app-twitter/twitter2/bin/splunklib/modularinput/event_writer.py/EventWriter.write_event