Creating Triggers
To create a new trigger, navigate to Triggers in the Logging Navigation, and click “Create a log trigger”. You will then be requested to define the following trigger attributes:Name & Description
In the Create new trigger form, give your trigger a functional name and description, for example, “Slow Process Trigger”.Trigger Query
Logging triggers are query based, meaning an alert is triggered when the conditions of a logging query are met. For example, if we have a logging attribute calledduration that records how long an API request takes to complete, and we want to be alerted when that attribute is greater than 50, we would create a trigger with the following query:
Shell
Threshold
You can define a threshold for your trigger to ensure you only receive alerts when necessary. Logging triggers can have the following thresholds:- Every Occurrence
- First After Close
- Nth in an hour
- Nth in a day
Set Trigger Severity
Triggers can be scoped to the following severities:- Critical
- High
- Low
- Info
Trigger Source
Define which logging sources your query applies to.Trigger Notifier
Define how you are notified once a trigger is triggered, for example, via email or Slack. Logging currently supports the following notifiers:- Discord
- Google Hangouts
- Opsgenie
- Pagerduty
- Slack
- MS Teams
- Webhook