splunk-sdk-python icon indicating copy to clipboard operation
splunk-sdk-python copied to clipboard

Modular input event writer does not support non-unicode encoding

Open gangtao opened this issue 12 years ago • 1 comments

Current splunklib/modularinput/event.py does not support text encoding other than unicode. Refer to the attachment for a possible solution.

screen shot 2014-07-23 at 4 39 18 pm

gangtao avatar Jul 23 '14 08:07 gangtao

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.

madhadron avatar Jul 23 '14 17:07 madhadron