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! ❤️

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...