If you are unfamiliar with Graylog or MongoDB you should read this more detailed blog post instead:
https://www.graylog.org/troubleshoot-slow-mongodb-queries-in-minutes-with-graylog/
Required Graylog version: 1.0 and later
- Download the plugin
and place the
.jar
file in your Graylog plugin directory. The plugin directory is theplugins/
folder relative from yourgraylog-server
directory by default and can be configured in yourgraylog.conf
file. - Restart
graylog-server
- Start a new MongoDB profiler input from System -> Inputs in your Graylog Web Interface
- Make sure to enable the profiler in your MongoDB processes. Set it to at least level 1 or 2.
This project is using Maven and requires Java 7 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.
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.