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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...