Graylog Plugin Development Setup

Hello Graylog Community,

I was hoping that I could get a little assistance on getting my plugin development environment setup.

I have been following the Plugin Development guide at:
http://docs.graylog.org/en/2.4/pages/plugins.html#writing-plugins

After downloading the latest master branch on the Meta Project, I noticed that the master branch no longer uses the scripts/bootstrap scripts.

So instead I tried the readme.md instructions a try and got the latest version of the cli tool from releases.
Running:
graylog-project bootstrap github://Graylog2/graylog-project.git
didn’t work as it wasn’t a valid repo name so I adjusted to the actual repo name and ran:
graylog-project bootstrap https://github.com/Graylog2/graylog-project.git

This downloaded the repos, but the server component didn’t appear ready to run in IntelliJ.

Looking into the Pull requests(https://github.com/Graylog2/graylog-project/pull/8), I saw someone had mentioned that you needed to compile the server component first before intelliJ could run the server by doing the following:
cd graylog-plugin-repos/graylog2-server
mvn compile
cd …/graylog-plugin-pipeline-processor
mvn compile

The 2nd directory doesn’t exist, but it the first appears to have worked with a build success at the end.However, once I opened IntelliJ, it still didn’t look like the runner module classpath was available.

Anyone run into anything similar and find a way around?

Currently I am running on Ubuntu 16.04 LTS and using openjdk 8

Thank You!

Anyone out there able to help me out?

Hi!

I had a lot a problem with my environment too. I think the tool graylog-project doesn’t work properly so here my solution:

  • Download a Graylog release https://github.com/Graylog2/graylog2-server/releases (2.4.3 in my example)
  • Unzip the file
  • Use: mvn archetype:generate -DarchetypeGroupId=org.graylog -DarchetypeArtifactId=graylog-plugin-archetype -DarchetypeVersion=2.4.3 in your graylog2-server-2.4.3 directory
  • Answer the questions in interactive mode
  • And here we go !

I’m not at all a specialist of Graylog or plugin development but I hope my answer will help you. Please let me know if it be so.

Regards.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.