Dashboards & Visualizations

How do I compare fields in 2 different indexes and return results only if values are not matching?

spl_unker
Explorer

I would like to construct a query by comparing 2 fields (hash values) in 2 different indexes.(A&B).........

If Hash Value in Index A matches Hash value in Index B then ignore those  results else return results if hashes not matching 

 

 

Labels (1)
0 Karma

spl_unker
Explorer

@ITWhisperer  I have updated my question.....I have removed my example for better understanding. Let me know if that is clear . TIA

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
index="A" OR index="B"
| eventstats count by hash
| where count < 2
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
index=A OR index=B
| stats dc(index) as indexes by hostname
| where indexes < 2
0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...