• Stars
    star
    113
  • Rank 303,912 (Top 7 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created almost 10 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Graylog alarm callback for Slack

Slack/Mattermost Plugin for Graylog

Github Downloads GitHub Release Build Status

Required Graylog version: 2.0 and later.

Please use version 2.1.0 of this plugin if you are still running Graylog 1.x

Detailed alarm notification and message output:

This plugin can notify Slack or Mattermost channels about triggered alerts in Graylog (Alarm Callback) and also forward each message routed into a stream (Message Output) in realtime.

Short mode message output:

Great for streams with higher message throughput. The screenshot shows the output of a nightly task that updates information of the Graylog Marketplace.

Changes in v3.0

  • Templated message are now supported. They use the same format as email alerts.

Installation

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.

Usage

For Slack:

Step 1: Create Slack Incoming Webhook

Create a new Slack Incoming Webhook (https://<organization>.slack.com/services/new/incoming-webhook) and copy the URL it will present to you. It will ask you to select a Slack channel but you can override it in the plugin configuration later.

For Mattermost:

Step 1: Create Mattermost Incoming Webhook

Enable Webhooks in general and create an incoming Webhook for Graylog as described in the Mattermost docs.

Step 2: Create alarm callback or message output

Create a "Slack alarm callback" on the "Manage alerts" page of your stream. Enter the requested configuration (use the Incoming Webhook URL you created in step 1) and save. Make sure you also configured alert conditions for the stream so that the alerts are actually triggered.

The same applies for message outputs which you can configure in Stream - > Manage Outputs.

Troubleshooting

HTTPS connection fails

If the Java runtime environment and the included SSL certificate trust store is too old, HTTPS connections to Slack might fail with the following error message:

Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

In this case, add the Slack SSL certificate manually to Java's trust store similar to the process described in the Graylog documentation.

Build

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

You can build a plugin (JAR) with mvn package.

DEB and RPM packages can be build with mvn jdeb:jdeb and mvn rpm:rpm respectively.

Plugin Release

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. TravisCI will build the release artifacts and upload to GitHub automatically.

More Repositories

1

graylog2-web-interface

[DEPRECATED]
612
star
2

cli-dashboard

A Graylog stream dashboard that runs in your shell.
JavaScript
215
star
3

gelf-rb

Ruby GELF library (Graylog Extended Log Format)
Ruby
153
star
4

graylog-plugin-metrics-reporter

Graylog Metrics Reporter Plugins
Java
77
star
5

graylog-contentpack-nginx

A nginx content pack for Graylog
75
star
6

graylog-plugin-spaceweather

Ever needed a proof that a solar storm made a bit flip and your code crash? Now you can! Correlate proton density to the response time of your app and the ion temperature to your exception rate.
Java
66
star
7

gelf-php

[DEPRECATED] PHP classes to send GELFmessages
PHP
62
star
8

graylog2-stream-dashboard

[DEPRECATED] Get a dashboard optimized view on your Graylog2 streams.
ApacheConf
56
star
9

log4j2-gelf

GELF Appender for Apache Log4j 2
Java
52
star
10

collector

[DEPRECATED] The Graylog Collector
Java
40
star
11

apache-mod_log_gelf

Apache2 module for writing access logs to Graylog
C
31
star
12

syslog4j-graylog2

The syslog4j fork from Graylog2. This is used since 0.10.0. The original code was very "special" and no actions were taken to improve it. This is planned to be replaced completely in future versions.
Java
31
star
13

graylog-plugin-snmp

Graylog plugin to receive SNMP traps
Java
26
star
14

shadowCA

Create a CA and Certificates to use in your Infrastructure
Shell
21
star
15

graylog-plugin-metrics

Graylog output plugin for Graphite and Ganglia
Java
18
star
16

graylog-plugin-mongodb-profiler

Graylog input plugin that reads MongoDB profiler data
Java
17
star
17

graylog-plugin-redis

Redis plugin for Graylog
Java
14
star
18

jersey-netty

[DEPRECATED] Netty 3 container for Jersey 2
Java
14
star
19

check-graylog2-stream

Icinga/Nagios check to monitor Graylog2 stream alerts
Go
14
star
20

graylog-plugin-mqtt

MQTT Input Plugin for Graylog
Java
13
star
21

graylog-plugin-internal-logs

Graylog plugin to record internal logs of Graylog efficiently instead of sending them over the network
Java
12
star
22

graylog-plugin-pagerduty

A Graylog plugin that triggers PagerDuty events
Java
11
star
23

graylog-plugin-splunk

Graylog output plugin that forwards one or more streams of data to Splunk via TCP.
Java
11
star
24

play2-graylog2

[DEPRECATED] How to send logs from the Play! framework to Graylog
Java
11
star
25

graylog2-puppet

[DEPRECATED] Puppet module to install and manage a Graylog 1.x system.
Puppet
10
star
26

graylog-plugin-dnsresolver

Message filter plugin to reverse lookup the source field
Java
9
star
27

graylog-plugin-hipchat

Alarm callback that is writing to HipChat chatrooms
Java
9
star
28

jest-elasticsearch-rest

[WIP] Elasticsearch low-level REST client adapter for Jest
Java
8
star
29

graylog-contentpack-cisco-catalyst

Graylog content pack for Cisco Catalyst devices
8
star
30

graylog-plugin-twitter

Graylog input plugin that reads Twitter messages based on keywords in realtime
Java
8
star
31

graylog-plugin-riemann

Graylog2 output plugin to send events to a Riemann instance
Java
7
star
32

graylog-vscode-extension

TypeScript
5
star
33

graylog-contentpack-heroku

Graylog content pack for Heroku logs
5
star
34

graylog-example-plugin-function-strlen

Example plugin: Pipeline function that returns the length of a string.
Java
4
star
35

graylog-contentpack-haproxy

Graylog content pack to parse the standard HAProxy HTTP logs.
4
star
36

metrics-gelf

A GELF reporter for the Dropwizard Metrics library
Java
4
star
37

apollo

The Graylog support data collector
Go
3
star
38

graylog-playground

Shell
3
star
39

graylog-plugin-rundeck

Graylog alarm callback plugin for Rundeck
Java
3
star
40

graylog-plugin-nats

NATS plugin for Graylog
Java
3
star
41

graylog-contentpack-rails

Content pack for this official guide: https://marketplace.graylog.org/addons/2a5a0954-96f7-4c86-895b-a44e358a9571
2
star
42

regex-library-shootout

Simple comparison benchmarks for various regex-based operations
Java
2
star
43

graylog-plugin-twiliosms

Transport that sends alarms via the Twilio SMS API
Java
2
star
44

graylog-plugin-jabber

Jabber Alarmcallback Plugin for Graylog
Java
2
star
45

graylog-plugin-filter-messagesize

A filter plugin that identifies messages with an estimated size over a certain threshold.
Java
1
star
46

graylog-plugin-zeromq

ZeroMQ integration for Graylog
Java
1
star
47

svloggelfd

Sends service log messages as UDP/GELF to a Graylog server
Go
1
star
48

java-compression-benchmarks

Java
1
star
49

graylog-mpproxy-messina

Bunyan (node.js) GELF support
1
star
50

graylog-web-plugin

[DEPRECATED] Containing helpers to streamline web interface plugin development
JavaScript
1
star
51

graylog-plugin-archetype

[DEPRECATED] Maven archetype to write Graylog2 plugins
Java
1
star
52

graylog-plugin-ipanonymizer

A graylog-server plugin that replaces the last octet of IP addresses in messages with xxx
Java
1
star
53

udpcat

CLI utility to send text files to a remote host via UDP, one packet per line
Makefile
1
star
54

eaio-uuid

Fork of eaio-uuid that works with Java 9+
Java
1
star