Alerting

Alert when there is more than expected errors in a specific log file?

HKLM
New Member

I have a log file for a system logging everything in it, that log file has errors in a daily base. I want to make an analysis per hour during business hours, so looking for previous logs and getting the average numbers (count) for each hour. So if in the future that log file has more error than it has before, during a specific time, so thus I need to get alerted on that?
Specific time I mean runnung a query each 15 minutes during business hours, if the errors are more than expected, it means something happens and needs my consideration.

0 Karma

marycordova
SplunkTrust
SplunkTrust

Please post some sample data.

Otherwise, first find your baseline threshold count:

base search for only error events
| timechart count span=15m

Then, write an alert using that threshold.

@marycordova
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...