Splunk Search

Extract a string

rbachu1
Explorer

Hi everyone, I have the below string.

isadhakdahdj asdh, hosadhao activity=Follow Up, entryName=Initial Outreach, asasa adadad oidaoidadalnd.

I want to extract .

activity=Follow Up

entryName=Initial Outreach

activity & entryName are static, but value of that may be dyna

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| rex "activity=(?<activity>[^,]+),\sentryName=(?<entryName>[^,]+),"

View solution in original post

0 Karma

rbachu1
Explorer

Thank you so much, exactly what I needed.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| rex "activity=(?<activity>[^,]+),\sentryName=(?<entryName>[^,]+),"
0 Karma
Get Updates on the Splunk Community!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...