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!

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