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!

[Puzzles] Solve, Learn, Repeat: Reprocessing XML into Fixed-Length Events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...