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!

Fall Into Learning with New Splunk Education Courses

Every month, Splunk Education releases new courses to help you branch out, strengthen your data science roots, ...

Super Optimize your Splunk Stats Searches: Unlocking the Power of tstats, TERM, and ...

By Martin Hettervik, Senior Consultant and Team Leader at Accelerate at Iver, Splunk MVPThe stats command is ...

How Splunk Observability Cloud Prevented a Major Payment Crisis in Minutes

Your bank's payment processing system is humming along during a busy afternoon, handling millions in hourly ...