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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...