Splunk Enterprise

extract a field and display results in a table

mrr6892
Loves-to-Learn

i am trying to extract specific words starts with gi. from all events and display in a table below is my string but it returned nothing please advise.

String:

mysearch | rex field=_raw "Start(?<"gi">.*)End"

Event:

/p.rabbitmq/rabbitmq/queues/81061abe-4007-46c4-b9f2-4855cda5ace2/gi.nam.quotesvc.submission.cleared.evt.flq/consumers

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

I take it you're trying to match the bold text.  If so, the current rex command won't work and should be throwing an error because of the unescaped quotation marks in the expression.  Try this:

| rex "(?<gi>gi.*)"
---
If this reply helps you, Karma would be appreciated.
0 Karma

mrr6892
Loves-to-Learn

i tried but still its not displaying the all value starts with gi. in table by the way below is the exact event i think what ever bold test i am looking is assigned to name: field like below


   name/p.rabbitmq/rabbitmq/queues/fc99de5c-2a5f-41e2-ba86-2cb662b8e771/gi.nam.submission.intake.cmd.flq/depth

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...