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!

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 ...