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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...