documentation
documentation copied to clipboard
There is no "script" directory in the graylog-project
Context
I tried to execute the procedure described in "Creating a plugin skeleton" in the "Plugins" page : http://docs.graylog.org/en/2.4/pages/plugins.html#creating-a-plugin-skeleton
After having cloned graylog-project from GitHub (git clone https://github.com/Graylog2/graylog-project.git), this page tell that I should execute those scripts : $ scripts/bootstrap $ scripts/bootstrap-plugin jira-alarmcallback
It is not possible because there is no no "script" directory in the graylog-project.
Expected Content
The procedure described in "Creating a plugin skeleton" in the "Plugins" page should be should be consistent with the content of the graylog-project.
Your Environment
- Graylog Version: 2.4
- graylog-project: cloned from GitHub on September 5 2018, at 08:10:54 UTC
- Operating System: Ubuntu on AWS
- Git version : 2.14.4
I am investigating this. I was able to reproduce the issue. There is no scripts directory in the graylog-project
project.
I guess the scripts will be replaced for the new graylog-cli project in the future, but at the moment there is no alternative to "bootstrap-plugin" it seems... but I was able to pull the "scripts" dir from an older branch and copy the folder into my "graylog-project" folder ... I had to adjust the path to the graylog-project-repos in the "scripts/includes" file (modulesPrefix=../graylog-project-repos
) and finally move the generated plugin folder one level up after creation, but it basically worked to create a new plugin with "scripts/bootstrap-plugin" (I didn't use "scripts/bootstrap" before, sind the graylog-cli already set everything up before)
For anyone interested, I have summarized my findings for creating new plugins and the missing script dir etc. in a blog article.
Hi @smxsm, Thanks for the blog article. It looks like the link did not come through. Could you please repost it?
@danotorrey whoops, I've fixed the link, please try again :)