Telegram Alert

GitHub Release Build Status Graylog Marketplace

TelegramAlert allows you to send Graylog alert messages to a specified Telegram chat.

Requirements

Requires Graylog 2.0 or later.

Installation

Download the plugin and place the .jar file in your plugins folder that is configured in your graylog.conf as described in the Graylog documentation.

Restart graylog-server: service graylog-server restart

Usage

Step 1

Create a new bot with the BotFather.

Step 2

Send the Bot a message and go to https://api.telegram.org/bot<BOT_TOKEN>/getUpdates (replace <BOT_TOKEN> with the token you got from BotFather) to get your ID, as shown below.

Chat ID

Step 3

Add a new alert notification in your Graylog-interface and select Telegram Alert as the notification type.

The message is a template that can be configured as described in the Graylog Documentation

Add alert notification Create new Telegram Alert

Build

This project is using Maven and requires Java 8 or higher.

You can build the plugin using the following command:

mvn package

The plugin file telegram-alert-x.x.x.jar will be saved in the target directory

Plugin Release

Versions are released using the maven release plugin:

mvn release:prepare
mvn release:perform

TravisCI builds and uploads the release artifacts automatically.

Credits

Thanks to Alexey Medov for his valuable ideas and generous donation!