All Apps and Add-ons

Hello experts, I would like to split the fourth part of value in splunk.

Ashwini_5
Explorer

Hello experts, I would like to split the  fourth part of below lines . Please provide your suggestion if I can use REGEX for it. 

Projects/IMGSD-102/Data/abc-NNN/00000000001
Projects/IMGSD-102/Data/abc-NNN/00000000001
Projects/IMGSD-102/Data/abc-NNNN/00000000001
Projects/IMGSD-102/Data/abc-NN/00000000001
Projects/IMGSD-102/Data/abc-N/00000000001

 

Now I need to get the answer as below.

abc-NNN

abc-NNN

abc-NNNN

abc-NN

abc-N

Kindly provide your suggestion for the same. 

 

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| rex "([^\/]+\/){3}(?<part>[^\/]+)\/"

View solution in original post

Ashwini_5
Explorer

Thanks a lot for your kind reply 🙂 @ITWhisperer  It helped me 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| rex "([^\/]+\/){3}(?<part>[^\/]+)\/"
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...