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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Unlocking Unified Insights: New Gigamon Federated Search App for Splunk

In today’s data-heavy environment, organizations are caught in a data distribution dilemma. As data volumes ...

GA: New Data Management App in Splunk Platform

Streamlining Data Management: Introducing a unified experience in Splunk Managing data at scale shouldn’t feel ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...