Hope you don’t mind but I moved this post out of Development which is the place to discuss and ask questions about the development of a Graylog-related project and into Graylog Central , I believe this is a installment issue.
May be these logs are useful (it was extracted from /var/log/graylog-server/server.log >>
2022-09-20T00:48:52.154-03:00 ERROR [CmdLineTool] Invalid configuration
com.github.joschi.jadconfig.ValidationException: Couldn’t run validator method
at com.github.joschi.jadconfig.JadConfig.invokeValidatorMethods(JadConfig.java:227) ~[graylog.jar:?]
at com.github.joschi.jadconfig.JadConfig.process(JadConfig.java:100) ~[graylog.jar:?]
at org.graylog2.bootstrap.CmdLineTool.processConfiguration(CmdLineTool.java:464) [graylog.jar:?]
at org.graylog2.bootstrap.CmdLineTool.run(CmdLineTool.java:270) [graylog.jar:?]
at org.graylog2.bootstrap.Main.main(Main.java:45) [graylog.jar:?]
Caused by: java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at com.github.joschi.jadconfig.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:53) ~[graylog.jar:?]
at com.github.joschi.jadconfig.JadConfig.invokeValidatorMethods(JadConfig.java:221) ~[graylog.jar:?]
… 4 more
Sorry, I am stuck on this Installation issue… may be difficult to troubleshoot so if anyone can send me an server.conf file (obviously without Private IP addresses) will be appreciated…Thanks
Thanks, I tried with default http://$http_bind_address/ and http_publish_uri = http://192.168.1.2:9000/ but it did not work.
I will try some time more and then unfortunately I am thinking in another SIEM option. Thanks all for your help!
We would hate to see you go without solving the issue! I took some time to clean up your server.conf posts by using the forum tool </> (shown above in the reply/edit box) which set up for preformatted text and makes code and logs easier to read.
There looks to be a couple of differences between your server.conf and the one that @gsmith posted for you - most notably you are not defining where your elasticsearch servers are.
elasticsearch_hosts = http://127.0.0.1:9200
If you are still up for the challenge, you could mirror @gsmith’s conf, adding what is missing and adjusting for your environment and get things going… You did install Elasticsearch, right? You may have installed OpenSearch (Newer Graylog instances would prefer OpenSearch as ElasticSearch is nearly deprecated for Graylog)
Hi there,
I have corrected the server.conf file and now it is as @gsmith posted for me… It is not possible to access Web GUI of Graylog server (http://192.168.1.2:9000 ).
I am stuck , I do not know the cause of this issue…
FYI>>
ubuntu@ubuntu:~$ systemctl status graylog-server.service
? graylog-server.service - Graylog server
Loaded: loaded (/lib/systemd/system/graylog-server.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-10-06 12:49:50 -03; 2h 29min ago
Docs: http://docs.graylog.org/
Main PID: 1156 (graylog-server)
Tasks: 15 (limit: 3416)
Memory: 365.4M
CGroup: /system.slice/graylog-server.service
tq1156 /bin/sh /usr/share/graylog-server/bin/graylog-server
mq1395 /usr/bin/java -Xms1g -Xmx1g -XX:NewRatio=1 -server -XX:+ResizeTLAB -XX:-OmitStackTraceInFastThrow -Djdk.tls.acknowledgeCloseNotify=true -Dlog4j2.formatMsgNoLookups=true -XX:+UseConcMarkSweepGC -XX:+CMSConcurrentMTEna>
Oct 06 12:49:50 ubuntu systemd[1]: Started Graylog server.
So we have your Graylog service up and running but I still need to see what is going on now that things have changed. Could you post the results of the following commands… some of them are duplicates, but you have updated your instance and I don’ know what exactly was changed.
Please note - when you post code, use the “preformatted text” tool on any code, configuration or logs to make them more readable (like was done to some posts above) It is this tool in the reply edit box.
ubuntu@ubuntu:~$ dpkg -l | grep -E ".*(elasticsearch|graylog|mongo|java).*"
ii ca-certificates-java 20190405ubuntu1 all Common CA certificates (JKS keystore)
ii elasticsearch-oss 7.10.2 amd64 Distributed RESTful search engine built for the cloud
ii gir1.2-javascriptcoregtk-4.0:amd64 2.36.8-0ubuntu0.20.04.1 amd64 JavaScript engine library from WebKitGTK - GObject introspection data
ii gjs 1.64.5-0ubuntu0.20.04.01 amd64 Mozilla-based javascript bindings for the GNOME platform
ii graylog-4.3-repository 1-5 all Package to install Graylog 4.3 GPG key and repository
ii graylog-enterprise-integrations-plugins 4.3.5-1 all Graylog Enterprise Integrations plugins
ii graylog-enterprise-plugins 4.3.5-1 amd64 Graylog Enterprise plugins
ii graylog-integrations-plugins 4.3.5-1 all Graylog Integrations plugins
ii graylog-server 4.3.5-1 all Graylog server
ii java-common 0.72 all Base package for Java runtimes
ii libgjs0g:amd64 1.64.5-0ubuntu0.20.04.01 amd64 Mozilla-based javascript bindings for the GNOME platform
ii libjavascriptcoregtk-4.0-18:amd64 2.36.8-0ubuntu0.20.04.1 amd64 JavaScript engine library from WebKitGTK
ii libjuh-java 1:6.4.7-0ubuntu0.20.04.5 all LibreOffice UNO runtime environment -- Java Uno helper
ii libjurt-java 1:6.4.7-0ubuntu0.20.04.5 all LibreOffice UNO runtime environment -- Java Uno Runtime
ii libridl-java 1:6.4.7-0ubuntu0.20.04.5 all LibreOffice UNO runtime environment -- base types and types access library for the Java Uno typesystem
ii libunoloader-java 1:6.4.7-0ubuntu0.20.04.5 all LibreOffice UNO runtime environment -- (Java) UNO loader
ii mongodb-org 4.0.28 amd64 MongoDB open source document-oriented database system (metapackage)
ii mongodb-org-mongos 4.0.28 amd64 MongoDB sharded cluster query router
ii mongodb-org-server 4.0.28 amd64 MongoDB database server
ii mongodb-org-shell 4.0.28 amd64 MongoDB shell client
ii mongodb-org-tools 4.0.28 amd64 MongoDB tools