Splunk Search

Need help on how to search on the search results

jefflambert
New Member

We are needing to do a search on "Text 1", then we take a dynamic value that's displayed there and do another search on that....then within those results we are looking for a log that contains "User: xxx".

Is there a way to combine this so that we can do just one search and find the one result?

Thanks!

Tags (1)
0 Karma
1 Solution

woodcock
Esteemed Legend

Yes, you use a subsearch for the first search and within that subsearch you use rex to reate the dynamic field with value which will be passed to the outer search which has User=xxx:

https://docs.splunk.com/Documentation/Splunk/6.6.1/SearchTutorial/Useasubsearch
http://docs.splunk.com/Documentation/SplunkCloud/6.6.0/SearchReference/Rex

View solution in original post

0 Karma

woodcock
Esteemed Legend

Yes, you use a subsearch for the first search and within that subsearch you use rex to reate the dynamic field with value which will be passed to the outer search which has User=xxx:

https://docs.splunk.com/Documentation/Splunk/6.6.1/SearchTutorial/Useasubsearch
http://docs.splunk.com/Documentation/SplunkCloud/6.6.0/SearchReference/Rex

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...