Message Conditional Count Plugin for Graylog
Graylog plugin that is triggered when there are more or less messages (matching a defined query) than the threshold.
Required Graylog version: 2.3 and later
Download the plugin
and place the
.jar file in your Graylog plugin directory. The plugin directory
plugins/ folder relative from your
graylog-server directory by default
and can be configured in your
graylog-server and you are done.
First we have to select the alert type Message Conditional Count Alert Condition
And then we have to fill al the fields. The only field that is diferent is the query field, that let you put a custom query. You have to put the same query that you look for in the search tab.
This project is using Maven 3 and requires Java 7 or higher.
- Clone this repository.
mvn package to build a JAR file.
- Optional: Run
mvn jdeb:jdeb and
mvn rpm:rpm to 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.