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!

Database Performance Sidebar Panel Now on APM Database Query Performance & Service ...

We’ve streamlined the troubleshooting experience for database-related service issues by adding a database ...

IM Landing Page Filter - Now Available

We’ve added the capability for you to filter across the summary details on the main Infrastructure Monitoring ...

Dynamic Links from Alerts to IM Navigators - New in Observability Cloud

Splunk continues to improve the troubleshooting experience in Observability Cloud with this latest enhancement ...