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 | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...