Splunk Search

Split block of data into multiple rows

g_paternicola
Path Finder

Hello everyone

I'm trying to get a list of ip addresses from an internet page and put them after that into a lookup table. My issius is that I can't use mvexpand to put every ip addresses into a single row...

here my search:

| curl method=get uri=https://feodotracker.abuse.ch/downloads/ipblocklist_recommended.txt
| fields curl_message 
| rex field=curl_message mode=sed "s/.*#//g"
| rex field=curl_message mode=sed "s/DstIP//g"
| rex field=curl_message mode=sed "s/^\s+//g"

and as results I will get a big block of data in one single row. How can I split these in multiple rows?

g_paternicola_0-1644486533083.png

 

Thank you all for the support.

Labels (5)
0 Karma
1 Solution

VatsalJagani
SplunkTrust
SplunkTrust
| mvexpand curl_message

View solution in original post

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust
| mvexpand curl_message
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| stats count by curl_message
0 Karma
Get Updates on the Splunk Community!

Exciting News: The AppDynamics Community Joins Splunk!

Hello Splunkers,   I’d like to introduce myself—I’m Ryan, the former AppDynamics Community Manager, and I’m ...

The All New Performance Insights for Splunk

Splunk gives you amazing tools to analyze system data and make business-critical decisions, react to issues, ...

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...