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!

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 ...