Skip to Content

Alerts

Alerts give Ledger the ability to respond to incoming information. An administrator configures match criteria by saving filters, then ties them to providers, which send webhooks or emails.

Alerts menu with Alerts, Providers, and Logs entries

Providers

Providers can be found in the Alerts > Providers menu. Providers are the method by which alerts are sent.

From the providers menu, you can see all currently configured providers, edit them, delete them, or create a new provider.

List of alert providers

Create New Provider

Clicking Create New Provider presents a Provider Type list. The options are:

  • Webhook
  • Email

Provider Type selection

Email

Choosing Email and clicking Next allows you to configure the following:

  • Name for the provider
  • To email address
  • Email subject
  • Email body

Once these fields are filled out, click Save to save the new provider.

Email provider settings

Email providers send through the SMTP relay configured under Settings > Mail. See Email.

Email Variables

Variables can be used to make the emails more flexible. They are in the format {VARIABLE-NAME}. The available options are:

  • {HOST}: Name of the host
  • {PACKAGE}: Name of the package
  • {ACTION}: Action performed
  • {SERVICE}: Name of the service
  • {MODULE}: Name of the module

Webhook

Choosing Webhook and clicking Next allows you to configure the following:

  • Name of the provider
  • Webhook type
  • Webhook URL
  • Webhook key

Webhook provider settings

Webhook Types

There are currently four options:

  • Ascender Webhook in GitHub format
  • Ascender Webhook in GitLab format
  • Bare Authorization
  • Normal HTTP/HTTPS

Alerts

Alerts can be found in the Alerts > Alerts menu. This menu lists all alerts currently in the system, along with the following information:

  • Name
  • Provider
  • Filter
  • Enabled status

There are also buttons for editing, enabling or disabling, and deleting an alert, and for creating a new alert.

Alerts list with the Create New Alert button

Create an Alert

Clicking Create New Alert presents these options:

  • Name the alert
  • Set enabled status
  • Choose the provider
  • Choose the filter

Click Create to save the new alert.

Create New Alert dialog

Filter

The filter list is populated with all saved filters created in these sections:

Logs

Any time an alert is triggered, an entry is added to the Alerts > Logs section. Here, you can view the following information:

  • Timestamp
  • Alert name
  • Provider
  • Hostname triggering the alert
  • Alert message

Alerts log

There is also a View button next to each entry, allowing you to see greater detail, such as the alert status.

Alert log entry detail