Load-balancer: Temporarily enable haproxy logs for debugging

Hey folks,

I’m trying to track down some random 500 errors in my node.js app, and need to temporarily enable haproxy logs. Ideally, shipping these to an ELK stack.

Are there directions anywhere for doing this?

Thanks
Mike

Currently, logs are not available for haproxy, but it is targeted for v1.2.0.

https://github.com/rancher/rancher/issues/2414

In the ELB configuration in the GUI you can add option httplog or in rancher-compose.yml:

elbservicename:
  load_balancer_config:
      defaults: |-
        option httplog

This is a hacky way to turn http logging on.