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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...