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
Motivator

@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 !!

 
 

 

I hope this helps, if any reply helps you, you could add your upvote/karma points to that reply, thanks.
0 Karma

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

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureThursday, March 27, 2025  |  11AM PST / 2PM EST | Register NowStep boldly ...

Splunk AppDynamics with Cisco Secure Application

Web applications unfortunately present a target rich environment for security vulnerabilities and attacks. ...