I was just about to ask: is Graylog built modularly, in such a way that all the messages and text field are pulled from a separate table or source file? That would make life a lot easier, when trying to offer translations. It’s an approach many project use: translators would simply have to copy the template text-string file and edit it for their own language.
I was just about to ask: is Graylog built modularly, in such a way that all the messages and text field are pulled from a separate table or source file?
You need to touch nearly all parts of Graylog so you need to make this a continuing task - all updates that are done by the Graylog team would need to be transfered to your repository and checked manually.
A big, new major version would of course be a great moment for big sweeping changes like switching to modular UI texts. But since 3.0 is right around the corner, that’s a bit too late. Perhaps for 4.0?
In the github repo screenshot, it shows a server run configuration in idea. If I go to Run/Debug configurations, I can see an option to create the same screenshot.
I thought about setting it up as a maven project as shown below
I am nearly complete, I have just a couple of the questions.
in your NPM configuration screenshot, you are running a locally installed version, not one in the graylog source tree correct?
I cant seem to select the runner class as in the screenshot below. Have I missed a Java dependancy somewhere? I have open-jdk 1.8 installed or is it just that I don’t know where to find the runner class selection.
I do holidays pretty much computer free as well except for first thing in the morning as I am a early riser.
I imported the project as a maven project from the graylog2 server directory in the source. IDEA said I had an unmanaged pom.xml and did I want to use maven, so I said ‘yes’.
OK, I solved it. Just for reference for others, you need to import the graylog-parent project not the graylog2-server directory as a maven project then you can setupthe configuration correctly.
I also had to remove the node options to get node to start within IDEA.
However, it looks like my config file is invalid according to below
.shared.plugins.PluginLoader - Plugin directory /home/xxxx/graylog-project-repos/graylog2-server/plugin does not exist, not loading plugins.
2019-01-02 10:00:42,967 INFO : org.graylog2.bootstrap.CmdLineTool - Loaded plugin: AWS plugins 3.0.0-alpha.6-SNAPSHOT [org.graylog.aws.AWSPlugin]
2019-01-02 10:00:42,968 INFO : org.graylog2.bootstrap.CmdLineTool - Loaded plugin: Collector 3.0.0-alpha.6-SNAPSHOT [org.graylog.plugins.collector.CollectorPlugin]
2019-01-02 10:00:42,970 INFO : org.graylog2.bootstrap.CmdLineTool - Loaded plugin: Threat Intelligence Plugin 3.0.0-alpha.6-SNAPSHOT [org.graylog.plugins.threatintel.ThreatIntelPlugin]
2019-01-02 10:00:42,990 ERROR: org.graylog2.bootstrap.CmdLineTool - Invalid configuration
com.github.joschi.jadconfig.ValidationException: Parent path /etc/graylog/server for Node ID file at /etc/graylog/server/node-id is not a directory
at org.graylog2.Configuration$NodeIdFileValidator.validate(Configuration.java:296) ~[classes/:?]
at org.graylog2.Configuration$NodeIdFileValidator.validate(Configuration.java:284) ~[classes/:?]
at com.github.joschi.jadconfig.JadConfig.validateParameter(JadConfig.java:215) ~[jadconfig-0.13.0.jar:?]
at com.github.joschi.jadconfig.JadConfig.processClassFields(JadConfig.java:148) ~[jadconfig-0.13.0.jar:?]
at com.github.joschi.jadconfig.JadConfig.process(JadConfig.java:99) ~[jadconfig-0.13.0.jar:?]
at org.graylog2.bootstrap.CmdLineTool.processConfiguration(CmdLineTool.java:351) [classes/:?]
at org.graylog2.bootstrap.CmdLineTool.readConfiguration(CmdLineTool.java:344) [classes/:?]
at org.graylog2.bootstrap.CmdLineTool.run(CmdLineTool.java:178) [classes/:?]
at org.graylog2.bootstrap.Main.main(Main.java:44) [classes/:?]
Process finished with exit code 1
I think I am nearly there, just need to solve the the plugin directory not existing and the node-id.
For final reference, I had to set graylog to listen on localhost address and comment out the node-id location in the graylog-server configuration file.
I suppose the next test is to get the localisation packages into npm and make sure that works within the package.json