I have a new graylog installation deployed via the AWS AMI. Trying to work
out from the documentation how to correctly set it to use the instance's
public IP address but can't find anything in the documentation. It seems
that graylog is supposed to automatically configure itself via graylog-ctl
reconfigure. Whenever I do that, it's using the instance's local network IP
rather than the public ip. The documentation says you can set a static IP,
but being an AWS instance that's not something I want to do.
I see in
/etc/graylog/graylog-settings.json that we have:
"local_connect": false,
"current_address": "172.30.0.XXX",
"last_address": "172.30.0.XXX",
Which matches the eth0 ip address:
eth0 Link encap:Ethernet HWaddr XXXXX
inet addr:172.30.0.XXX Bcast:172.30.0.255 Mask:255.255.255.0
inet6 addr: XXXXX Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:9001 Metric:1
RX packets:2000460 errors:0 dropped:0 overruns:0 frame:0
TX packets:1323056 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:806247501 (806.2 MB) TX bytes:746184355 (746.1 MB)
But unfortunately local IP is not accessible from the web, so for example
in the web interface if I try to visit the API browser it tries to take me
to http://172.30.0.XXX:12900/api-browser which does not work. If I try to
use the domain name I've assigned to this instance,
http://mydomainname.com:12900 it works, but none of the api browser
commands work due to CORS limitations.
Is it possible for me to set current_address in graylog-settings.json to my
public mydomainname.com address? Or is there some other way to force the
server to use my public ip address?
--
You received this message because you are subscribed to the Google Groups
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/graylog2/5d00ef29-050e-4d62-a579-5eadf985c926%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.