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 Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...