Splunk Search

regex for extracting word after symbol

New Member

please help me to extract the quoted word
abcd > efgh > "lmn pqr"

I tried with “(?[^>]$)" but while querying like this
|rex field=_raw “word (?[^>]
$)" showing error.

Thanks in advance

Tags (2)
0 Karma


I noticed the quotes in your regex are two different characters, the first pair do not match the text. Here is a suggestion that closely matches your regex:

without a named field--->       |rex field=_raw "\"(.+[^>])\"$"
with a named field --->         |rex field=_raw "\"(?<FieldName>.+[^>])\"$"
0 Karma

Super Champion

Hi @deeptha1992,

Try this :

|rex field=_raw “([^>]+[>])+\s?\"(?<YourFieldName>.+)\"$"


0 Karma
Get Updates on the Splunk Community!

Observability | How to Think About Instrumentation Overhead (White Paper)

Novice observability practitioners are often overly obsessed with performance. They might approach ...

Cloud Platform | Get Resiliency in the Cloud Event (Register Now!)

IDC Report: Enterprises Gain Higher Efficiency and Resiliency With Migration to Cloud  Today many enterprises ...

The Great Resilience Quest: 10th Leaderboard Update

The tenth leaderboard update (11.23-12.05) for The Great Resilience Quest is out &gt;&gt; As our brave ...