Integrate with Microsoft Teams using a Logz.io custom webhook to receive Logz.io notifications in your Microsoft Teams workspace.

Adding your Microsoft Teams endpoint

Allow firewall access

See Custom Endpoints for general instructions on setting up firewall access for Logz.io notifications.

This may include whitelisting Logz.io IPs and/or creating a verification token.

Add the endpoint
  1. To add a new custom endpoint, click Add endpoint.
  2. Type: Select the option Custom.
  3. URL: See MS docs for instructions on creating the webhook URL.
  4. Method: Select the POST method.
  5. Headers: Add Content-Type=application/json.
  6. Payload: Add your payload message. See the next step for details.

Configure a custom endpoint

Add your payload

Microsoft Teams requires that you send either the text or summary properties. Learn more from Microsoft.

Example payload

To use this example in your own endpoint, copy the payload. Note that double-brackets indicate parameters that will be auto-populated by Logz.io.

{
    "@context": "https://schema.org/extensions",
    "@type": "MessageCard",
    "themeColor": "0072C6",
    "title": "{{alert_severity}}: {{alert_title}}",
    "summary": "{{alert_description}}",
    "text": "{{alert_samples}}",
    "potentialAction": [
        {
            "@type": "OpenUri",
            "name": "View in Kibana",
            "targets": [
                {
                    "os": "default",
                    "uri": "{{alert_app_url}}#/view-triggered-alert?from={{alert_timeframe_start_epoch_millis}}&to={{alert_timeframe_end_epoch_millis}}&definitionId={{alert_definition_id}}&switchToAccountId={{account_id}}"
                }
            ]
        }
    ]
}
Test the endpoint (Optional)

Click Run the test to test your endpoint. Logz.io shows if the message was successfully sent.

Check that the message arrived at the target endpoint.

Save the endpoint

Save your endpoint.