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!

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...