Question:
One of my Syslog Sources is listening on a IPv6 address. I am unable to configure my endpoints to send messages to this address. How do I force it to use IPv4 instead?
Solution:
To force the JVM to default to IPV4, you can add an optional Java parameter to the Wrapper configuration file:
- Open /Sumo Logic Collector/config/wrapper.conf ~ line 69, under # Java Additional Parameters.
- Add the following line:
wrapper.java.additional.3=-Djava.net.preferIPv4Stack=true - To restart the collector, use: ./collector restart.
Alternatively you can turn off IPv6 completely using these steps:
- sudo gedit /etc/sysctl.conf
- Add the following lines to the end of the file:
# IPv6 disabled
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
3. Run this command to reload sysctl settings; it will apply the changes immediately: sysctl -p.
Comments
1 comment
wrapper.java.additional.3=-Djava.net.preferIPv4Stack=true
This does not work
Please sign in to leave a comment.