Splunk Search

How to search a exception in splunk which didn't occurred in past

koushik91
Observer

How to search a exception in splunk which didn't occurred in past

0 Karma

richgalloway
SplunkTrust
SplunkTrust
Please say more about what you are trying to accomplish.
Understand that searching for something that did not happen is a challenge.
---
If this reply helps you, Karma would be appreciated.
0 Karma

koushik91
Observer

Hi richgalloway,

Yes, i want to search a exception which was not occurred in past. I am creating a Alert Notification for a exception which was not occurred in past. Please share me search query which you have 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Like I said, finding something that has never happened before is a challenge.  The definition of "never" will depend on how far back your indexed data goes.  Because you'll be comparing a given event to all other events in your index(es) you can expect this to be very slow.  A simple example:

index=foo earliest=-1y
| stats count by _raw
| where count = 1
| fields - count

This search will return all unique events from the "foo" index over the past year.  You can speed up the search by being more specific about what you search for.  Perhaps you only want events with "Exception" or "ERROR" in them, for instance.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...