Splunk Dev

How do I extract filename from different paths in the field name "FileList" with the help of regex ?

jugalkinariwala
Explorer

I have below files in one of the fields named "FileList"
/dir1/dir2/f1.txt

/dir1/f2.csv

/dir1/dir2/dir3/xyzdir/f3.bat

f4.txt

/xvz/dir/f5.txt

I want an output which shows only the last name which is the actual filename from the above "FileList" field as below
f1.txt

f2.csv

f3.bat

f4.txt

f5.txt

0 Karma
1 Solution

jugalkinariwala
Explorer

Got the results myself .

 

Thanks to all 🙂

View solution in original post

0 Karma

jugalkinariwala
Explorer

Got the results myself .

 

Thanks to all 🙂

0 Karma
Get Updates on the Splunk Community!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...