Splunk Search

How do I split a multi value single field into multi fields?

MOHITJOSHI
Engager

JSON field=value pairing

i have a log with single field name TestCategories and has multiple values in it like--x,y,z,....

how can i split it and create individual fields like TestCategories1x and TestCategories2: y

TestCategoriesx,y,z,

Labels (1)
0 Karma

SanjayReddy
SplunkTrust
SplunkTrust

Hi @MOHITJOSHI 


can you use following command

| mvexpand TestCategories 

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