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!

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