Splunk Search

data extraction

Siddharthnegi
Contributor

hello  I am getting a field port in event .
ports="['22', '68', '6556']"
how can i display them in separate rows.

0 Karma

kiran_panchavat
SplunkTrust
SplunkTrust

@Siddharthnegi You can use the mvexpand command in Splunk to separate the port numbers into individual rows. 

kiran_panchavat_1-1725633937731.png

 

If the above solution works, an upvote is appreciated !!

 
 

 

Did this help? If yes, please consider giving kudos, marking it as the solution, or commenting for clarification — your feedback keeps the community going!
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| rex field=ports max_match=0 "(?<port>\d+)"
| mvexpand port
0 Karma
Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...