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!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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