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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...