Splunk Search

How to edit my subsearch to look up a predefined field comprised of rex in my main search?

jjmel
Explorer

My subsearch contains this predefined field, and I'm trying to use it to search my main search that gets the field using rex, but I get no results.

I've tried a few different things:

host=blah... [search...| table my_field] | rex field=_raw "...<my_field>..."

host=blah... |rex field=_raw "...<my_field>..." | regex [search... | table my_field]

host=blah... | rex field=_raw "...<my_field>..." | regex my_field=[search...| table my_field]
0 Karma
1 Solution

sundareshr
Legend

Try this

host=blah... | rex field=_raw "...<my_field>..." | search [search... | table my_field ]

View solution in original post

sundareshr
Legend

Try this

host=blah... | rex field=_raw "...<my_field>..." | search [search... | table my_field ]

jjmel
Explorer

so simple. thanks!

0 Karma
Get Updates on the Splunk Community!

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 ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...