Randomly TCP Output

View thread

Tulio Gomes (Last updated )

Hi Folks,

I have a tcp output that has 3 hosts in sequence to send to graylog (failover), but I would like to "randomly" switch the ouputs to better distribute the load on the nodes. In my config example, 'graylog_1' will always receive all events. Is there a bultin solution for processor/output to send randomly to the multiple nodes?

Config example:

<Output out_graylog>
        Module om_tcp
        FlowControl False    
        Host # graylog_1    
        Host # graylog_2    
        Host # graylog_3

A viP/loadbalancer for graylog is not the solution I'm looking for, I want to understand the power of nxlog and its customization.