Alerting

How to configure custom alert

someguy73
Explorer

I collect amount of prices every day and want to make custom alert, which will say to me that sum of prices changed more than 10%.
So I have fields PRC_TYP, "Reuters", BGN etc and SUMMA, where I calculate sum of current string
alt text

What should I write in filed Triggered Condition -> Custom -> "search ...." when cofigureted my alert?
How to connect field "SUMMA" with current date and a date before?
Please help 🙂

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Generally speaking, alerts are triggered from the content of the associated search. That is, if you didn't search for it, you can't alert on it.
You example search calculates a sum for the current time period. To test the 10% change, you have to perform the same calculation on the last time period's data (the timewrap app can help with that). Once you have both sums you can compute the difference and trigger an alert.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Generally speaking, alerts are triggered from the content of the associated search. That is, if you didn't search for it, you can't alert on it.
You example search calculates a sum for the current time period. To test the 10% change, you have to perform the same calculation on the last time period's data (the timewrap app can help with that). Once you have both sums you can compute the difference and trigger an alert.

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

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

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