All Apps and Add-ons

Extracted field regex help

chrisslagel
New Member

OK so I'm trying to do something pretty specific but can't seem to get the generated pattern thing to work and the format of this hurts my brain.

I want a regex that will grab everything after a / and ending with .mp3

So

/xx-xxx-xx.mp3

/xyxxy.mp3

etc.

Basically a wildcard so it will find anything with /*.mp3 regardless of what's between the / and the .

Any help would be greatly appretiate.

0 Karma

jonuwz
Influencer
... | rex ".*/(?<song>.*?)\.mp3" | table song

kristian_kolb
Ultra Champion

??? That's what jonuwz wrote..

0 Karma

jonuwz
Influencer

Eh? It creates a column called song whose value is everything between / and .mp3

0 Karma

chrisslagel
New Member

That's a start, but I need it to be a wildcard entry without having to put in the actual filename.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...