How to create Tasks from Axiom alerts
How to create Tasks from Axiom alerts

Svit can create a Task automatically when Axiom spots an error in your logs. Each distinct problem becomes one Task in the folder you choose, with the problem in the title and a link to the Axiom monitor. While that Task is open, repeated alerts about the same problem do not create new Tasks.

You need: access to integration settings in your Svit Space (permission to edit the integration and to create Tasks), a Task folder for alerts, and access to monitors and notifiers in Axiom.

Step 1. Connect Svit

  1. Open Space settings → Integrations. Under available integrations, choose Signals / Webhook (in Data & automation).

  2. Set Signal source to Axiom and Task folder to the folder that should receive the Tasks. Click Create integration. The source cannot be changed later: for another service, add another Signals / Webhook integration.

  3. Click Generate bearer token. Copy the Webhook URL and the Authorization header value. The header value is shown only once, so copy it before closing the window.

Step 2. Axiom notifier

  1. In Axiom, open Monitors → Notifiers → New notifier and choose Custom webhook.

  2. Paste the Svit webhook URL into the URL field.

  3. Under Webhook secret headers, add a header named Authorization and paste the copied value, including its Bearer prefix.

  4. Paste the template below into the request body. In the monitorURL line, replace your-org with your Axiom organization name, as shown in the page address: app.axiom.co/name/….

{{- $title := printf "%v" .Name -}}
{{- range .GroupValues -}}{{- $title = printf "%s · %v" $title . -}}{{- end -}}
{
  "action": {{jsonString (printf "%v" .Action)}},
  "event": {
    "monitorID": {{jsonString (printf "%v" .MonitorID)}},
    "monitorURL": {{jsonString (printf "https://app.axiom.co/your-org/monitors/%v" .MonitorID)}},
    "title": {{jsonString $title}},
    "groupKeys": {{if .GroupValues}}["group"]{{else}}null{{end}},
    "groupValues": {{if .GroupValues}}[{{jsonString (printf "%v" .GroupValues)}}]{{else}}null{{end}}
  }
}

The template uses the monitor name and group values for the Task title and builds the monitor link. Raw events and the query text stay in Axiom and are not sent to Svit.

Step 3. Monitor

  1. Create or open a monitor under Monitors. For errors, a Threshold monitor that fires when the count of error records is above 0 works well.

  2. To get one Task per distinct problem, group the query by the field that identifies it (for example, an error code) and turn on Notify by group.

  3. Attach the notifier to the monitor and save.

What happens next

  • When the monitor fires, a Task with the monitor and problem name and a link to the Axiom monitor appears in the chosen folder.

  • Repeated alerts about the same problem (same monitor and group) do not create a new Task while the Task is open.

  • Axiom's notice that the problem has cleared does not change the Task. You close it.

  • After a Task is done, a new alert can reopen it once the Reopen delay from the integration settings has passed.

  • Ignore rules in the integration settings let you skip known, unimportant alerts by title, environment or severity.

How to test

The test button in Axiom's notifier settings sends an alert without a monitor, so Svit rejects it and no Task is created. That is expected. To test the whole chain, create a temporary monitor that is sure to fire, wait for the Task in the folder, then delete the monitor.

Replacing the token

Generating a new token in Svit stops the previous one from working. Replace the Authorization header value in the Axiom notifier right away.

More about notifiers: Axiom custom webhook documentation.

Didn't find the answer to your question?
Send your question to support
Made in Svit.One