My problem is when I run netstat and look at the open ports, all I see for Graylog is IPV6 UDP Ports. I’m trying to get IPv4 UDP port 1514 open for UDP syslog messages into graylog. I do have the INPUT created in graylog. This is on Ubuntu Server 20 using the Graylog Ubuntu docs to build Graylog.
I found this in the manual:
Problems with IPv6 vs. IPv4?
If your Graylog node refuses to listen on IPv4 addresses and always chooses for example a http_bind_address
like :::9000
you can tell the JVM to prefer the IPv4 stack.
Add the java.net.preferIPv4Stack
flag in your graylogctl
script or from wherever you are calling the graylog.jar
:
~$ sudo -u graylog java -Djava.net.preferIPv4Stack=true -jar graylog.jar
The above command is coming back with "usage: graylog []. so I’m missing something with getting the " java.net.preferIPv4Stack
" added to the graylogctl script. The graylog.jar file is not readable so not sure where/what script I need to be editing.