Hi ,
I have recently build a graylog 2.5.1 cluster with 3 graylog+mongodb nodes and 3 ES nodes. Everything seem to work well except when i click API browser. The graylog is behind internal nginx and all the servers in my networks are calling it through local DNS - which works well. But when i click on the API browser nothing is appearing. Kindly advise on this issue. Thanks
Blockquote (( the graylog conf from on of the nodes ))
root@mgolog1:/etc/graylog/server# grep -v “#” server.conf |grep uri
rest_listen_uri = http://10.0.0.145:9000/api
web_listen_uri = http://10.0.0.145:9000/
mongodb_uri = mongodb://10.0.0.145:27017,10.0.0.146:27017,10.0.0.147:27017/graylog?replicaSet=graylog
what URL are you redirected to? - it’s pointing to http://10.0.0.145:9000/api/api-browser . 10.0.0.145 is my server’s local ip and will not work from outside the network.
In that case you definitely do not have to reinstall or upgrade It’s working just fine, except for the combo with the HA proxy.
Now that I think of it… should not all Graylog config point to the external facing address of the NGinx proxy? It seems odd to me that your users would access the IP/name of the NGinx box, but then Graylog would bypass it and rewrite certain URI’s to match its own address.
EDIT:
Returning to @Jan’s original question about rest_transport_uri, the documentation has this to say:
You will need to define this, if your Graylog server is running behind a HTTP proxy that is rewriting the scheme, host name or URI.
So yeah… Maybe you really do need to set that value.
EDIT:
By the by @jan, let me say that I love that you guys have actually added a self-documenting API through Swagger etc. Not al projects who have an API provide these facilities.
guess i hv fixed it with the tips you all hv given. i have added the config as below and the API browser seem to work now. Thank you so much! Appreciate all your guidance !!
Dude that’s wonderful! Be sure to run it through its paces the next few days, try as many use-cases as possible to make sure everything is in perfect working order.