Splunk Search

EVAL, EXTRACT in props.conf not working when using field names with special characters

ndcl
Path Finder

Hi,

I try to add some EVAL and EXTRACT to the props.conf of same windows events with german localisation. Because the Events are in german splunk autoextracts the fields with special characters. F.g Domain as Domäne. In the search bar this is no problem:

EVAL newUser = substr(Domäne,-1,1) + substr(Benutzername,2, 3)

works fine but in props.conf:

EVAL-newUser = substr(Domäne,-1,1) + substr(Benutzername,2, 3)

the newUser field does not appear.

This also happened with all props.conf transforms...

how to fix this?

THX

0 Karma
1 Solution

ndcl
Path Finder

figured out by myself: Character Set mismatch between Server and Editor...

View solution in original post

0 Karma

ndcl
Path Finder

figured out by myself: Character Set mismatch between Server and Editor...

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

In the eval command you can enclose weird field names with single quotes, for example like this:

... | eval foo = 'my weird field name' + 1

Try adding those to your config, maybe it helps there as well...

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...