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!

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...

SignalFlow: What? Why? How?

What is SignalFlow? Splunk Observability Cloud’s analytics engine, SignalFlow, opens up a world of in-depth ...

Federated Search for Amazon S3 | Key Use Cases to Streamline Compliance Workflows

Modern business operations are supported by data compliance. As regulations evolve, organizations must ...