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!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...