Splunk Search

Search using two indexes

moayadalghamdi
Path Finder

Hola Splunkers !!

 

i want to search in two indexes with one common values in between, for exapmle:

 

index=Exchange_server has the following fields: sender, subject

index=EmailProxy has the following fields: src_ip, sender

 

where the sender value is the same in the two indexes 

 

 

i want the output to conclude: src_ip, SenderMail,  Subject

 

here's my search:

index=Exchange_server OR index=EmailProxy | table src_ip message_subjec sender

moayadalghamdi_0-1622103988354.png

 

 

but unfortunately i got many blank fields, please help me with it.

 

 

Thanks^_^

 

 

 

Labels (4)
0 Karma

aasabatini
Motivator

Hi @moayadalghamdi 

try this

index=msexchange OR index=cisco_esa | stats  values(message_subject) as message_subject values(sender) as sender by src_ip
“The answer is out there, Neo, and it’s looking for you, and it will find you if you want it to.”
0 Karma
Get Updates on the Splunk Community!

App Platform's 2025 Year in Review: A Year of Innovation, Growth, and Community

As we step into 2026, it’s the perfect moment to reflect on what an extraordinary year 2025 was for the Splunk ...

Operationalizing Entity Risk Score with Enterprise Security 8.3+

Overview Enterprise Security 8.3 introduces a powerful new feature called “Entity Risk Scoring” (ERS) for ...

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...