Getting Data In

Field extraction only works partial

mikeschneider
Explorer

Hello Splunkers,

I created a (index-time) field extraction with the following regex:

REGEX = ^\d+;\d{11}02(\d{5})\d{5}

This extracts a Number from a CSV-File and stores it in a field "fkennung". I see that the field is filled at index time
and its also in the fields list in splunk UI, filled with correct values. Lets say one of the numbers in that field is 51117.
If i do a wildcard search "fkennung=51*" the search returns the correct events, all numbers in "fkennung" starting with 51.
If id do a wildcard search "fkennung=511*" or a search with the vale "fkennung=51117" splunk doesnt return any results.
Even if i klick on a value at the field menu,the search doesnt return any results.

Any ideas ?

0 Karma
1 Solution

yannK
Splunk Employee
Splunk Employee

In addition to defining the props/transforms extraction, did you defined the field in fields.conf ?

see http://docs.splunk.com/Documentation/Splunk/latest/Data/Configureindex-timefieldextraction

Try to add the following lines to fields.conf:
[fkennung]
INDEXED=true

View solution in original post

0 Karma

yannK
Splunk Employee
Splunk Employee

In addition to defining the props/transforms extraction, did you defined the field in fields.conf ?

see http://docs.splunk.com/Documentation/Splunk/latest/Data/Configureindex-timefieldextraction

Try to add the following lines to fields.conf:
[fkennung]
INDEXED=true

0 Karma

mikeschneider
Explorer

....it works....just a typo in fields.conf,thank you Yann 🐵

0 Karma

mikeschneider
Explorer

btw, Hi Yann,i guess we met in London 🐵

yannK
Splunk Employee
Splunk Employee

indeed. Happy it worked 🙂

0 Karma

mikeschneider
Explorer

Yep,did that already 🐵

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

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