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!

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...