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!

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...