Splunk Search

Spliting a string of file names

data_explorer88
Explorer

I have a list of files name under one field called "attachment"  and I would like to split this string into multiple rows by file names. I tried split/makemv method but it was unsuccessful.. really appreciate any tips on separating this string by file. Thank you 

 

For example: 

Raw output: "image001.png Project_Preference_crosstab (3).csv GC_Preferences - 8 Oct.xlsx GC updated skills with ratings - 30 Sep 2021.xlsx Skill_Details_-_Base_crosstab (3).csv AP Talent list - 30 Sep 2021.xlsx UCD_Skills_Compliance_Details_crosstab (2).csv"

 

I would like to see:

image001.png

Project_Preference_crosstab (3).csv GC_Preferences - 8 Oct.xlsx

GC updated skills with ratings - 30 Sep 2021.xlsx

Skill_Details_-_Base_crosstab (3).csv

AP Talent list - 30 Sep 2021.xlsx

UCD_Skills_Compliance_Details_crosstab (2).csv

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| rex max_match=0 field=output "(?<file>.*?\.(csv|xlsx|png|))\s?"
| mvexpand file

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
| rex max_match=0 field=output "(?<file>.*?\.(csv|xlsx|png|))\s?"
| mvexpand file

data_explorer88
Explorer

This works so well!!!! Thank you so much! :red_heart:

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...