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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...