Splunk Search

Compare results from yesterday to today

rjfv8205
Path Finder

Hello Splunkers.

Yesterday I don't have events but today I have it.

For example:

Event aaa today exists 100 times but yesterday didn't exist
Event bbb today exists 80 times but yesterday didn't exist
Event ccc today exists 60 times but yesterday did exist 30 times
Event ddd today exists 40 times but yesterday didn't exist

I want make a search that alert all events that today exists but yesterday didn't exist I tried with subsearch and outter join but I didn't have results.

index = "ems" SS_ID =* EVENT_NBR=* | where _time <= relative_time(now(), "-2d@d") | stats count by SS_ID EVENT_NBR | join type=outter SS_ID EVENT_NBR [ index = "ems" | table SS_ID EVENT_NBR ]

Additionally alert events that exists more than 60 times (Event aaa, event bbb in this case).

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...