Web listen interface


(alias) #1

Hi all,

I have two LAN eth interfaces in my graylog node:
eth0:10.0.1.1
eth1:10.0.2.1

I want to up the web interface on these interfaces (eth0 AND eth1).

I try to configure via :

web_listen_uri = http://10.0.1.1:9000/,http://10.0.2.1:9000/

Only once interface is used

web_listen_uri = http://0.0.0.0:9000/

Error:
com.github.joschi.jadconfig.ValidationException: Wildcard IP addresses cannot be used if the Graylog REST API and web interface listen on the same port.
at org.graylog2.Configuration.validateNetworkInterfaces(Configuration.java:339) ~[graylog.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_151]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_151]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_151]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_151]
at com.github.joschi.jadconfig.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:53) ~[graylog.jar:?]
at com.github.joschi.jadconfig.JadConfig.invokeValidatorMethods(JadConfig.java:221) ~[graylog.jar:?]
at com.github.joschi.jadconfig.JadConfig.process(JadConfig.java:100) ~[graylog.jar:?]
at org.graylog2.bootstrap.CmdLineTool.processConfiguration(CmdLineTool.java:351) [graylog.jar:?]
at org.graylog2.bootstrap.CmdLineTool.readConfiguration(CmdLineTool.java:344) [graylog.jar:?]
at org.graylog2.bootstrap.CmdLineTool.run(CmdLineTool.java:177) [graylog.jar:?]
at org.graylog2.bootstrap.Main.main(Main.java:44) [graylog.jar:?]

How to do this without use LB ?

Thanks


(Jochen) #2

You can’t because the Graylog web interface also has to know the public URI of the Graylog REST API (which is specified by rest_transport_uri, web_endpoint_uri, or the X-Graylog-Server-URL HTTP request header).

Other than that, the error message already tells you what’s wrong. Hint: Check rest_listen_uri and web_listen_uri.


(system) #3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.