Problem I am facing is, I am not using fluentd instance running on my server.
I am just pushing some data through Java code by connecting to remote fluentd.
Example:
FluentLogger LOG = FluentLogger.getLogger(app, FLUENTD_ADDRESS, FLUENTD_PORT);
I connect to remote fluentd like this.
and just pushing some data using map.
This way I am connected to only one fluentd remote instance.
what if it fails to connect due to network failure. my messages are lost. Funny thing about it I am not able to catch exception if connection not established cause Java compiler doesnt understand it.
It's just displaying in the console couldn't connect but its not going to catch block.
Can you please share your ideas on this.
Thanks in advance.