Splunk Search

Get different element between 2 sources with join or other command?

Buscatrufas
Path Finder

Hi guys,

I have 2 sources, historical and current, i need to catch the new events in my monitor, so i compare current with historical, i cant match the persistents events but no the new

Any help with join o command that can do this?

Thanks, Buscatrufas.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Assuming there is some kind of identifier, you could do this:

index=foo (source=historical OR source=new) | stats values(source) as sources by identifier | search NOT sources=historical

That would give you a list of identifiers that are present in the new source, but weren't present in the historical source.
This search is fairly generic, if you want more specific help you'll have to provide more specific details about your events.

0 Karma

sundareshr
Legend

Try something this. This should return everything from new, that does not have a corresponding "matchingfield" in historical

index=new NOT [ search index=historical | table matchingfield]

0 Karma
Get Updates on the Splunk Community!

Devesh Logendran, Splunk, and the Singapore Cyber Conquest

At this year’s Splunk University, I had the privilege of chatting with Devesh Logendran, one of the winners in ...

There's No Place Like Chrome and the Splunk Platform

WATCH NOW!Malware. Risky Extensions. Data Exfiltration. End-users are increasingly reliant on browsers to ...

Customer Experience | Join the Customer Advisory Board!

Are you ready to take your Splunk journey to the next level? 🚀 We invite you to join our elite squad ...