Getting Data In

Fields with spaces

techsup
New Member

Hello,

I've got a problem with 2008 eventlogs returns by universal forwarder.
My win 2008 R2 is a french version and Fields which extract by Splunk contains spaces and they are not be used.

Splunk 4.3.5

Ex :

...

OpCode=Informations

RecordNumber=45957

Keywords=Échec de l’audit

Message=Échec d’ouverture de session d’un compte.

Sujet : 

ID de sécurité :  AUTORITE NT\Système

Nom du compte :     MIB2011081$

...

No problem with 'OpCode' but 'Nom du compte' isn't usable yet appears in interesting fields.
With a Win2003 eventlog, no problem, 'Nom du compte' is automatically replace by 'Nom_du_compte' in interesting fields.

Any ideas ?

Thanks

0 Karma
1 Solution

yannK
Splunk Employee
Splunk Employee

A workaround may be to create a field extraction for this specific field.

example with an inline field extraction :

| rex "Nom du compte :\s(?<Nom_du_compte>\w+)"

see http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/Addfieldsatsearchtime

View solution in original post

ambemou
New Member

Hello,

I have a same issue on my splunk 5.0.4 with windows 2008 R2 french can you tell me how you solve this issue.

Thanks

0 Karma

yannK
Splunk Employee
Splunk Employee

A workaround may be to create a field extraction for this specific field.

example with an inline field extraction :

| rex "Nom du compte :\s(?<Nom_du_compte>\w+)"

see http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/Addfieldsatsearchtime

techsup
New Member

Thanks, finally that's what I do.

0 Karma

sihamUfp
New Member

can you expline how to use rex in this example please

0 Karma
Get Updates on the Splunk Community!

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 ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...