The compilation succeeded. However after I placed my .jar plugin into the /usr/share/graylog-server/plugin folder, the plugin did not seem to be available.
When I check the installed plugin in Nodes → details section, I see the plugin is taken into account. But the basic /sample endpoint does not work and I get a “Page not found” error.
Does anyone have an idea of what could be the cause of this problem ?
I think if I did not restart the service, I would not have seen my custom plugin in the installed plugins section anyway.
I compiled the graylog-plugin-collector and uploaded its .jar and the same problem appear: The collector plugin is present in installed plugins section but the Menu and /system/collectors endpoint are missing and I get a page not found error.
Moreover there is no error in graylog-server logs so it is really complicated to troobleshoot
Then I uploaded graylog-plugin-collector-3.3.17-SNAPSHOT.jar of the collector plugin to my ova graylog 4.0.0. (I tried with some other versions without other result)
I also tested with empty cache.
This is what I observed:
The plugin is set as installed in the installed plugins section ( Nodes → Details)
The plugin is not present in configuration section
No log are registered from /var/log/graylog-server/ folder log
Does anyone have a guideline for compiling and integrating a simple web ui plugin adding a simple page accessible through the navbar ?
I saw many topics talking about installed plugin which are not accessible from the ui. But none of the evoked solution solved the problem on my side.
If so, I did a test as follow:
Navigated to PLUGIN directory and deleted graylog-plugin-collector-4.2.7.jar root# rm -rf graylog-plugin-collector-4.2.7.jar
Restarted Graylog service to make sure the plugin was not there.
Executed a re-install root# yum reinstall graylog-server