It only takes a few minutes to add alerting to any of your Logit.io stacks. Once enabled, you'll be able to edit and set up alerting rules for all your stacks.
Provision Alerting for a Stack
When you log in your stacks are displayed on the dashboard. To enable alerting for a stack, choose 'View Stack Settings'.
Next, choose 'Alerting & Notifications' and then choose 'Setup alerting for this Stack'
Create your Alerting Rule
Use the code block below to quickly get started with your Pagerduty alert.
name: Production App Errors
# Index to search, wildcard supported
## Receive an alert for every single match
# A list of elasticsearch filters used for find events
# These filters are joined with AND and nested in a filtered query
query: "type: error"
# The alert used when a match is found
# Integration Key generated by PagerDuty
# The name of the monitoring client that is triggering this event
How to use the code
Paste the code into the alert replacing any existing rule.
Then just edit the code to match the filter query you need, in this case we are looking for matches on "type:error".
Choose test to run the rule against your data over the last 2 hrs.
Once happy, choose update to apply and save the rule.
Now you're all set to send Pagerduty alerts from Logit.io.
Learn more about ElastAlert rules: if you'd like to learn more about ElastAlert rules from the people that built it, check out their cheat sheet.
Read Logit.io's introduction to alerting
Learn how to send alerts to Email from your Logit.io stacks.
Learn how to send alerts to Slack from your Logit.io stacks.