A Graylog event notification plugin for sending Microsoft Teams MessageCard post.
Required Graylog version: 3.1.3 and later
* In case your Graylog version is 3.1.0 - 3.1.2, please use graylog-plugin-teams version 2.0.0.
* In case your Graylog version is lower than 3.1.0, you can still use graylog-plugin-teams version 1.x.x.
Download the plugin
and place the .jar file in your Graylog plugin directory. The plugin directory
is the plugins/ folder relative from your graylog-server directory by default
and can be configured in your graylog.conf file.
Restart graylog-server and you are done.
First of all, you need to create Workflow in Teams to 'Post to a channel when a webhook request is received'. See more about Teams webhook. Save the URL webhook for step 3 (you can also display it later in edit mode).
To use Microsoft Workflow you need plugin version 2.1.0 and above.
Create Graylog notification and choose Microsoft Teams Notification V2 as Notification type.
Input your Teams incoming webhook created at #1 and fill out other configurations. Here is a screenshot of configuration example.
To format the AdaptiveCard see How to format card content
you can also test in interactive design within TextBlock element - select host app Microsoft Teams and target version 1.4.
Create Graylog Event definition and set Microsoft Teams Notification you created at #3 as its Notification.
You will receive notification message like below.
If you use version 2.0.x or lesser and you want to use 2.1.0 and above you need to reconfigure the the webhook to use Microsoft Workflow and update the webhook URL - you might need to update message as syntax for Teams cards changed see Usage step #3 above.
- Fork the repository (https://github.com/hidapple/graylog-plugin-teams/fork)
- Create your feature branch
- Commit your changes
- Rebase your local changes against the main branch
- Make sure your code can be packaged by
mvnwithout any errors - Create a new Pull Request
This project is using Maven 3 and requires Java 17 or higher.
- Clone this repository.
- Run
mvn packageto build a JAR file. - Optional: Run
mvn jdeb:jdebandmvn rpm:rpmto create a DEB and RPM package respectively. - Copy generated JAR file in target directory to your Graylog plugin directory.
- Restart the Graylog.
We are using the maven release plugin:
$ mvn release:prepare
[...]
$ mvn release:perform
This sets the version numbers, creates a tag and pushes to GitHub. Travis CI will build the release artifacts and upload to GitHub automatically.

