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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...