splunk-sdk-python
splunk-sdk-python copied to clipboard
Modular input event writer does not support non-unicode encoding
Current splunklib/modularinput/event.py does not support text encoding other than unicode. Refer to the attachment for a possible solution.

This is by design. Splunk converts everything to UTF-8 as part of indexing, so there is no reason to insert an encoding mismatch. Users of the modular input library should not be concerned with the encoding of what gets written.
If you are having problems, you are probably conflating byte strings and unicode strings in Python.