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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...