Splunk Search

Is there a way to pass results of a subsearch to be used in the display and criteria of a parent search?

djm229
Engager

I've Googled it, but can't find a SOLUTION.  

I've got a search that pulls Validators remaining per Subject.  I want to pass that list of validators (single variable) and Subject (and maybe status) variable to the parent search to be used for that search.  So the final table be the parent search with the correlated subsearch data (list of validators).  The two searches are of different indexes, but the Subjects are the same.

Any ideas or links to solutions that I obviously missed?

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

It would help if you showed your current searches.  The general form is

index=index2 somestufftosearchfor [ search index=index1 someotherstufftosearchfor | fields validator Subject status | format ]
| ...

The validator, Subject, and status fields will be returned to the main search in form 

((validator=foo Subject=bar status=baz) OR (validator=foo2 Subject=bar2 status=baz2) ...)
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

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