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!

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...

[Live Demo] Watch SOC transformation in action with the reimagined Splunk Enterprise ...

Overwhelmed SOC? Splunk ES Has Your Back Tool sprawl, alert fatigue, and endless context switching are making ...

What’s New & Next in Splunk SOAR

Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us on ...