metadata field, so you can use them to power alert attributes and routing.
Instructions
- Head over to the Alerts section in your incident.io dashboard.
- Select the Sources tab at the top of the page.
- Press the Create source button.
- Search for Logz.io and click Continue to create the alert source.
- In Logz.io, go to Settings → Notification endpoints and add a new Custom endpoint.
-
Set the method to POST and paste in the URL from the incident.io setup page. Under Headers, add an
Authorizationheader set toBearer {secret_token}using the token shown in incident.io. - Paste the JSON body from the incident.io setup page into the endpoint’s Body. It maps Logz.io placeholders onto the fields we expect.
- Assign the endpoint to your alert definitions, then use Test on the endpoint to send a sample alert. If it’s set up correctly, the alert appears in incident.io.
Route alerts by team
Logz.io tags are free-form strings. The recommended approach is to add a tag on each alert definition that names the relevant team or service, for exampleteam:platform, and parse it out of the comma-separated metadata.tags string into a Team alert attribute.
Alternatively, create one custom endpoint per team, append a query parameter such as ?team=platform to each URL, and read it with $['query_params']['team']. See routing alerts to teams for what to do with the attribute once it’s set.
Once alerts are arriving, create an alert route to filter, group, and escalate them, or to automatically create incidents.