splunk / splunk-sdk-python

Splunk Software Development Kit for Python
http://dev.splunk.com
Apache License 2.0
698 stars 370 forks source link

EventWriter is writing bytes on stdout which is not supported in pyth… #295

Closed chinmay2197 closed 2 years ago

chinmay2197 commented 4 years ago

…on3 #274

Resolved bug #274 for event_writer.py and event.py for modular input

tdhellmann commented 4 years ago

Hi @chinmay2197 - thanks for the PR! Can you please fill out the contribution agreement located here: https://www.splunk.com/en_us/form/contributions.html before we proceed?

ashah-splunk commented 2 years ago

@chinmay2197 Thank you for the PR. Latest release of python sdk supports Python3 along with Python2, so we would request you to use the latest version of python sdk

In the latest version, before writing the encoded XML document to stream, it is encoded through "ensure_str()" which handles the decoding of bytes before encoding the xml document while using Python3

Do let us know if the issue is resolved .