Automatically detect abnormal behavior in your system using the Time Relative Alert. Such alerts are triggered when a fixed ratio reaches a set threshold compared to a past time frame.
Use this feature to:
Receive automatic alerts regarding changes in your system’s security, operations, and / or business behaviors over time
Compare between each behavior across different time periods
Track & Compare Your System Behavior Over Time
Security. Receive automatic alerts comparing suspicious behavior. Compare, for instance, the amount of NX domain name responses or admin logins across days or weeks.
Operations. Receive automatic alerts regarding error rates and page loading times in your applications. Compare, for instance, errors rates and page loading times in the past day or hour.
Business. Receive automatic alerts when there is a shift in sales or user signups. Compare, for instance, the amount of purchases on the same day last week or the user signups over the last month.
STEP 1. Create a new alert.
Click on Alerts in the navigation pane.
Click NEW ALERT on the upper right-hand corner of your dashboard.
STEP 2. Define Alert Details.
Severity. Choose from one of four options: info, warning, error, critical.
Labels. Define a new label or choose from an existing one. Nest a label using key:value.
STEP 3. Select TIME RELATIVEAlert Type.
STEP 4. Define a Query.
Input a new Query. Using the available RegEx cheat sheet for support.
Filter by Application, Subsystem and Severities.
STEP 5. Set the Conditions for triggering an alert.
The Alert will trigger when the query matching the alert definition will be More than/Less than a number of Occurences when compared to the query results of a particular Time Window.
For example: The query returns for the last hour 180 error logs. The same query but in a different timeframe (e.g previous hour) returns 60 error logs. It means the ratio is 3. If the ratio is more than 1, then the alert will be triggered when the threshold was reached.
Time Window. Choose the a particular timeframe for comparison.
Previous hour – compare the timeframe “now-1hour TO now” to “now-2hour TO now-1hour” (1 hour)
Same hour yesterday – compare the timeframe “now-1hour TO now” to “now-25hours TO now-24hours” (1 hour)
Same hour last week – compare the timeframe “now-1hour TO now” to “now-1week and 1 hour TO now-1week” (1 hour)
Yesterday – compare the timeframe “now-24hours TO now” to “now-48hours TO now-24 hours” (24 hours)
Same day last week – compare the timeframe “now-24hours TO now” to “now-8days TO now-7days” (24 hours)
Same day last month – compare the timeframe “now-24hours TO now” to “now-29days TO now-28days” (24 hours)
A comparison between timeframes is made either every 5 minutes (for: Previous hour, Same hour yesterday, Same hour last week) or every 10 minutes (for: Yesterday, Same day last week, Same day last month).
Group By. Group your alerts using one or more values that are aggregated into a histogram.
An alert is triggered whenever the condition threshold is met for a specific aggregated value within the specified timeframe.
New! If using 2 values for Group By, matching logs will first be aggregated by the parent field (ie. region), then by the child field (ie. pod_name). An alert will fire when the threshold meets the unique combination of both parent and child. Only logs that include the Group By fields will be included in the count.
STEP 6. Define Notification settings.
Aggregated Notification. By default, a single notification, aggregating all values matching an alert query and conditions, will be sent to your Coralogix Insights screen.
Individual Notification Groups. New! Multiple individual notifications for each of the values of the Group By field will be sent when query conditions are met. Select one or more Keys in the drop down menu. A separate notification will be sent for each Key selected.
The Keys available for selection in the Notification Group can only be a subset of the fields selected in the alert conditions.
The number of Group By permutations is limited to 1000. If there are more permutations, then only the first 1000 are tracked.
Individual notifications for each of the values of the Group By field will not appear on the Insights screen and must be sent directly to notification recipients.
Both notification types allow you to choose the the parameters of your notification:
Notify Every. Sets the alert cadence. After an alert is triggered and a notification is sent, the alert will continue to work, but notifications will be suppressed for the duration of the suppression period.
When an alert is triggered, it won’t be triggered againuntil one of two things happens: either the Notify Every period passes or it is resolved. In the latter case, the Notify Every parameter is reset.
Notify when resolved. Activate to receive an automatic update once an alert has ceased.
Define additional alert recipient(s) and notification channels by clicking + ADD WEBHOOK.
STEP 7. Set a Schedule.
Limit triggering to specific days and times.
STEP 8. Define Notification Content.
Choose a specific JSON key or keys to include in the alert notification.
Leave blank to view the full log text.
STEP 9. Finalize your alert.
Click Create Alert in the upper-right side of the screen.
The alert will be activated after the Time Window set in the Conditions.
Once triggered, the alert will display the count of logs for the current timeframe, for the compared timeframe, and the quotient of both.
Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.
Feel free to reach out to us via our in-app chat or by sending us an email at [email protected].