Splunk Search

Why are some of the events garbled with "\x00"?

elusive
Splunk Employee
Splunk Employee

I am indexing some logs and I see some events are filled with "\x00" while some other events are indexed correctly.

1 Solution

elusive
Splunk Employee
Splunk Employee

Such behavior is observed when Unix Splunk instance is indexing mounted Windows logs. Windows has a unique way of logging which Unix instance is not aware of causing to index with nulls "\x00". When indexing Windows logs such as iis, exchange, domain controller, and so on, install Splunk as a forwarder on the Windows box and have it forward to Unix Splunk indexer.

View solution in original post

Jason
Motivator

Nope. UTF-16 turned a lot of the text into asian characters.

0 Karma

Jason
Motivator

I'm seeing an input from windows onto unix having \x00 and some other unknown characters interspersed with the data. Is UTF-16 the answer to this?

0 Karma

jrodman
Splunk Employee
Splunk Employee

Ideally, if you are having this symptom, you should be clear about the pattern of null characters (\x00). Are they interleaved with the expected data? Do they come in small bursts (ten bytes or so)? Are there several kilobytes worth of nulls all at once?

0 Karma

Chris_R_
Splunk Employee
Splunk Employee

This also happens sometimes when the data your indexing is encoded with a different character set such as UTF-16

You can specify the charset in your props.conf
[somesourcetype]
CHARSET = UTF-16

sshres5
Communicator

So, do we create props.conf on Forwarder TA or Indexer TA?

0 Karma

elusive
Splunk Employee
Splunk Employee

Such behavior is observed when Unix Splunk instance is indexing mounted Windows logs. Windows has a unique way of logging which Unix instance is not aware of causing to index with nulls "\x00". When indexing Windows logs such as iis, exchange, domain controller, and so on, install Splunk as a forwarder on the Windows box and have it forward to Unix Splunk indexer.

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...