1. Describe your incident:
I’ve done an installation of two servers for Graylog, one master, one not. I have an httpd load balancer set up in front of them. When I hit the load balancer, I get a white page in response. When I hit the servers directly, I get the login page. I know I’m missing something simple, but I can’t see what, and I’m hoping I’ve understood the documentation correctly.
2. Describe your environment:
-
OS Information: Centos 7
-
Package Version: Graylog v4.2.11+ec7c16b (installed via yum)
-
Service logs, configurations, and environment variables:
Graylog server one (master) named gcp-us-east4-a-pr-graylog-01:
#graylog settings
node_id_file = /graylog/node-id
root_timezone = EST5EDT
bin_dir = /usr/share/graylog-server/bin
data_dir = /graylog/
plugin_dir = /usr/share/graylog-server/plugin
http_publish_uri = http://gcp-us-east4-a-pr-graylog-01.my.tld/
http_bind_address = 0.0.0.0:9000
http_external_uri = http://gcp-us-east4-a-pr-graylog-01.my.tld/
#IP of the load balancer
trusted_proxies = 10.128.208.126/32
http_enable_cors = true
is_master = true
Server two (non-master) named gcp-us-east4-a-pr-graylog-02:
#graylog settings
node_id_file = /graylog/node-id
root_timezone = EST5EDT
bin_dir = /usr/share/graylog-server/bin
data_dir = /graylog/
plugin_dir = /usr/share/graylog-server/plugin
http_bind_address = 0.0.0.0:9000
http_publish_uri = http://gcp-us-east4-a-pr-graylog-02.my.tld/
http_external_uri = http://gcp-us-east4-a-pr-graylog-02.my.tld/
#IP of the load balancer
trusted_proxies = 10.128.208.126/32
http_enable_cors = true
httpd server addon config for virtual host:
<VirtualHost *:80>
ServerName cocologger.my.tld
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location />
RequestHeader set X-Graylog-Server-URL "cocologger.my.tld"
ProxyPass http://cocologger-graylog-01.my.tld:9000/
ProxyPassReverse http://cocologger-graylog-01.my.tld:9000/
</Location>
</VirtualHost>
The rest of the config is the default httpd.conf that comes with a yum install httpd
(so if that’s part of the issue, I’m not well versed in httpd)
3. What steps have you already taken to try and solve the problem?
Read the docs, tested various settings in the server.conf files
4. How can the community help?
See what I might be missing?
Also, right now I’m only using 01 as the target, what do I need to do to add 02 as well? I tried having multiple ProxyPass
and ProxyPassReverse
lines, but it only uses the last set.
When I’ve searched the forum, most posts indicate that it’s something missing or incorrectly configured in the server.conf
file, but I’m not sure what at this point, so, any help or direction would be appreciated.
I’ve confirmed the connectivity between the hosts:
[root@gcp-us-east4-a-pr-lb-httpd-01 httpd]# curl --head cocologger-graylog-01.my.tld:9000
HTTP/1.1 200 OK
X-UA-Compatible: IE=edge
X-Graylog-Node-ID: 33091279-b0ab-4b3e-b6b1-b51b3873c5f3
Content-Length: 1676
Content-Type: text/html
[root@gcp-us-east4-a-pr-lb-httpd-01 httpd]#
[root@gcp-us-east4-a-pr-lb-httpd-01 httpd]# curl --head cocologger-graylog-02.my.tld:9000
HTTP/1.1 200 OK
X-UA-Compatible: IE=edge
X-Graylog-Node-ID: 382a3b78-0b23-40c5-9a90-6a372dfe1aa0
Content-Length: 1676
Content-Type: text/html
[root@gcp-us-east4-a-pr-lb-httpd-01 httpd]#
And on the reverse:
[root@gcp-us-east4-a-pr-graylog-01 graylog-server]# curl --head cocologger.my.tld
HTTP/1.1 200 OK
Date: Tue, 02 Aug 2022 21:33:57 GMT
Server: Apache/2.4.6 (CentOS)
X-UA-Compatible: IE=edge
X-Graylog-Node-ID: 33091279-b0ab-4b3e-b6b1-b51b3873c5f3
Content-Length: 2060
Content-Type: text/html; charset=UTF-8
[root@gcp-us-east4-a-pr-graylog-01 graylog-server]#
[root@gcp-us-east4-a-pr-graylog-02 graylog-server]# curl --head cocologger.my.tld
HTTP/1.1 200 OK
Date: Tue, 02 Aug 2022 21:34:44 GMT
Server: Apache/2.4.6 (CentOS)
X-UA-Compatible: IE=edge
X-Graylog-Node-ID: 33091279-b0ab-4b3e-b6b1-b51b3873c5f3
Content-Length: 2060
Content-Type: text/html; charset=UTF-8
[root@gcp-us-east4-a-pr-graylog-02 graylog-server]#