Getting Data In

Character encoding when sending to TCP port

helge
Builder

I am sending data to a TCP port I configured for input on the Splunk server. How should the (string) data be encoded - ASCII, ANSI (in that case: which codepage?), UTF-8 or UTF-16 (aka UCS-2)?

0 Karma
1 Solution

helge
Builder

Based on my experiments it seems Splunk expects the encoding to be UTF-8. I sent strings with German, Greek and Russing special characters and they were displayed correctly in the web UI.

Example:

alt text

I also tried UCS-2, but that did not work out too well:

alt text

View solution in original post

0 Karma

helge
Builder

Based on my experiments it seems Splunk expects the encoding to be UTF-8. I sent strings with German, Greek and Russing special characters and they were displayed correctly in the web UI.

Example:

alt text

I also tried UCS-2, but that did not work out too well:

alt text

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...