The startup rule function has to be provided. It creates and returns a load balancer that can be used to send messages to load balanced remote destinations.
Procedure
Create the router TCP connection in a startup rule function.
Use this rule function as an event preprocessor. It sends an event to a remote receiver. The router agent does not have any destinations. The routing decision is made using the routing key.