How to use the solnlib.modular_input.event.XMLEvent function in solnlib

To help you get started, we’ve selected a few solnlib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github PaloAltoNetworks / pandevice / install / Splunk_TA_paloalto / bin / splunk_ta_paloalto / solnlib / modular_input / event_writer.py View on Github external
def write_events(self, events):
        if not events:
            return

        stdout = sys.stdout

        with self._lock:
            for event in XMLEvent.format_events(events):
                stdout.write(event)
            stdout.flush()
github remg427 / misp42splunk / misp42splunk / bin / packages / aob_py2 / cloudconnectlib / common / util.py View on Github external
def format_events(raw_events, time=None,
                  index=None, host=None, source=None, sourcetype=None,
                  stanza=None, unbroken=False, done=False):
    return XMLEvent.format_events(XMLEvent(data, time=time,
                                           index=index, host=host,
                                           source=source,
                                           sourcetype=sourcetype,
                                           stanza=stanza, unbroken=unbroken,
                                           done=done) for data in
                                  raw_events)
github PaloAltoNetworks / pandevice / install / Splunk_TA_paloalto / bin / splunk_ta_paloalto / solnlib / modular_input / event_writer.py View on Github external
def create_event(self, data, time=None,
                     index=None, host=None, source=None, sourcetype=None,
                     stanza=None, unbroken=False, done=False):
        '''Create a new XMLEvent object.
        '''

        return XMLEvent(
            data, time=time,
            index=index, host=host, source=source, sourcetype=sourcetype,
            stanza=stanza, unbroken=unbroken, done=done)