Splunk Search

Transform a field into a multi-value field

ikulcsar
Communicator

Hi,

I have an auto extracted field with comma separated values.

DesiredAccess = Read Data; List Directory; Read Attributes;

My goal is to turn it into a multi-value field with values Read Data;, List Directory; etc.

I tried several configs with props.conf and transforms.confm but doesn't works. Last one:

props.conf:
REPORT-DesiredAccess = mv-DesiredAccess

transforms.conf:
[mv-DesiredAccess]
SOURCE_KEY = DesiredAccess
DELIMS = " "
MV_ADD = true

Should I use TOKENIZER? How can I solve this, which path is the better in this case?

Thanks,
István

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Does it have to be done at index time? Index-time transforms force all users to view data the same way, which is not always desirable.

It can be done at search time using ...| makemv delim=";" DesiredAccess |....

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Does it have to be done at index time? Index-time transforms force all users to view data the same way, which is not always desirable.

It can be done at search time using ...| makemv delim=";" DesiredAccess |....

---
If this reply helps you, Karma would be appreciated.
0 Karma

ikulcsar
Communicator

Hi,

There is nothing decided yet but at first sight, an automatic method would be preferred. Something in props.conf etc.

Istvan

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Try TOKENIZER = (?<field>[^;]+);\s* in fields.conf. I haven't used it before so I'm not sure it will work.

---
If this reply helps you, Karma would be appreciated.
0 Karma

ikulcsar
Communicator

Hi, thanks, works. So this has to be done by fields.conf:)
I use the TOKENIZER = ([^;]+);\s* format.

Regards
istván

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