New update to that:
I have fixed the previous issue by increase the VM memory and CPU.
Now when I try to log in to Graylog web interface, I am greeted with this messaged:
{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"api","index_uuid":"_na_","index":"api"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"api","index_uuid":"_na_","index":"api"},"status":404}
This is the elasticsearch. If I change the url to not include /api in the url. I get this:
{
"name" : "EdZNbVO",
"cluster_name" : "graylog",
"cluster_uuid" : "qJBgeCrMRxqQQ1WumGD5kw",
"version" : {
"number" : "5.6.10",
"build_hash" : "b727a60",
"build_date" : "2018-06-06T15:48:34.860Z",
"build_snapshot" : false,
"lucene_version" : "6.6.1"
},
"tagline" : "You Know, for Search"
}
my initial thoughts was that graylog wasnt running… So I checked it and this is what I get:
● graylog-server.service - Graylog server
Loaded: loaded (/usr/lib/systemd/system/graylog-server.service; enabled; vend
Active: activating (auto-restart) (Result: exit-code) since Mon 2018-08-13 15
Docs: http://docs.graylog.org/
Process: 3248 ExecStart=/usr/share/graylog-server/bin/graylog-server (code=exited, status=255)
Main PID: 3248 (code=exited, status=255)
Any clues?
Fixed the Graylog issue by downloading Java 8 again, but still seeing the same thing on Elasticsearch
The elasticsearch issue was because both graylog and elasticsearch was connecting on the same Port, so I just changed it and it worked.