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!

New Case Study Shows the Value of Partnering with Splunk Academic Alliance

The University of Nevada, Las Vegas (UNLV) is another premier research institution helping to shape the next ...

How to Monitor Google Kubernetes Engine (GKE)

We’ve looked at how to integrate Kubernetes environments with Splunk Observability Cloud, but what about ...

Index This | How can you make 45 using only 4?

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