Splunk Search

JOIN two table using time as a common key from tow different searches

deepthi5
Path Finder

Hi ,

I have two searches withing same index but different sources and sourcetypes
index=XXX source=XXX |XMLKV |search Category="CDMSP" RI="0" | table _time,Category,F,RI

which gives me time category function and request ID from my app log
and another search

index=XXX source="XXXX" sourcetype=XXXX |table _time,SNMP_Message

Which gives me time and SNMP messages

Now i want to correlate both these searches based on time and display a table so that i can know at a particular time what function,RI ,SNMP Message category are executed
so a complete table based on time

Tags (2)
0 Karma

inventsekar
SplunkTrust
SplunkTrust
index=XXX source=XXX |XMLKV |search Category="CDMSP" RI="0" | [search index=XXX source="XXXX" sourcetype=XXXX |table _time,SNMP_Message] | table _time,Category,F,RI,SNMP_Message

or, please check this one -

 index=XXX source=XXX OR (source="XXXX" sourcetype=XXXX) 
|XMLKV |search Category="CDMSP" RI="0" |table _time,SNMP_Message,Category,F,RI,SNMP_Message
thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...