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
Motivator

Hi @MOHITJOSHI 


can you use following command

| mvexpand TestCategories 

0 Karma
Get Updates on the Splunk Community!

Splunk Security Content for Threat Detection & Response, Q1 Roundup

Join Principal Threat Researcher, Michael Haag, as he walks through:An introduction to the Splunk Threat ...

Splunk Life | Happy Pride Month!

Happy Pride Month, Splunk Community! 🌈 In the United States, as well as many countries around the ...

SplunkTrust | Where Are They Now - Michael Uschmann

The Background Five years ago, Splunk published several videos showcasing members of the SplunkTrust to share ...