Splunk Search

How to extract a value between to identifiers?

wantjoule
Engager

I'm looking for a way to extract a value from the middle of a sting. The value(green) I want is after the first underscore(blue) and before the dash(pink)

Example:

GET_tres_main.aspx_detail_showall-0

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

With a limited example, this may not be enough

| rex "GET_(?<value>[^\-]+)"

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

With a limited example, this may not be enough

| rex "GET_(?<value>[^\-]+)"
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...