Splunk Search

Join Two Searches Using Matching ID - But Different Field Name

SplunkLunk
Path Finder

Greetings,

Our developers are logging what user views a particular web page and flag it via the "ID" field. If a user also runs a query within the web page during that session, it logs the query in a different table using the "URL_REQUEST_ID". The ID and the URL_REQUEST_ID are the same value. How can I join the two searches based on the value in the "ID" field in that first search I mentioned.

Basically I want to list the pages they viewed and any corresponding queries they ran in one report/output. Thanks for any help.

Tags (1)
0 Karma

mayurr98
Super Champion

try this:

(index=A  ID=xyz) OR (index=B  URL_REQUEST_ID=xyz) 
 | rename URL_REQUEST_ID as ID
 | table index ID .. all the required fields
 | stats values(*) as * by ID

~~I AM BACK

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