I get below error message:
I have provided the remote collector IP address in the agent config file.
2017-11-28 13:37:33 [23ff8821] warning [native] Connection::connect(): Address resolution for 'localhost' returned multiple addresses. Using first returned: 127.0.0.1
2017-11-28 13:54:23 [23ff8821] warning [native] ... last message repeated 100 times ...
For Java, the Collector address needs to be set in the command line instead of with the config file, like: