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!

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 ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

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 ...