Start edit graylog

#1

Good morning,
I would like to know how to start editing the graylog code. I already have graylog operative, but I would like to be able to modify the source code.

Thank you

(Jan Doberstein) #2

I guess that it is a nice starter here: https://github.com/Graylog2/graylog-project

If you can’t follow the trail, please return.

1 Like
#3

Thanks, I’ve been working with that, but I have a couple of doubts.
Do you need to have installed graylog before? I installed it before performing these steps. I’m working on Ubuntu 18.04.2. LTS

I have problems with this command "chmod + x HOME / bin / graylog-project", I do not execute the commands or I get an error, I execute them from the root itself. I'm doing it as in the example HOME / bin / graylog-project I tried with home, with / home … it does nothing or at least nothing visible in the graylog-project folder.

Finally, to execute Bootstrap commands from the home / bin / graylog-project directory?

very thankful

(Jan Doberstein) #4

You shouldn’t develope as user root …

I would suggest that you use your own user for the development. The CLI Tool need to be somewhere in your path (so that you can run the command direct) or you would need to adress the command with the full path on every call.

$ mkdir -p $HOME/bin
$ cp graylog-project.linux $HOME/bin/graylog-project
$ chmod +x $HOME/bin/graylog-project

You create with the first command a directory bin in your users home directory. With the second you copy the binary into that directory and with the chmod +x you add the execute right to this binary …

1 Like
#5

I have this problem:
$ graylog-project bootstrap github: //Graylog2/graylog-project.git
git clone git@github.com: Graylog2 / graylog-project.git graylog-project
Git stderr:
Failed to run: git [clone git@github.com: Graylog2 / graylog-project.git graylog-project] (exit status 128)

I think I might not recognize this command well:
chmod + x $ HOME / bin / graylog-project

Can you help me?

Very thankful

(Jan Doberstein) #6

I guess that you can’t connect to Github - you might want to change to the https interface.

(system) closed #7

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